Skip to content

Commit 907af36

Browse files
committed
Merge branch 'staging' into 3.10-dev
2 parents 83dc4d8 + 69a1a58 commit 907af36

File tree

5 files changed

+15
-16
lines changed

5 files changed

+15
-16
lines changed

administrator/components/com_categories/views/categories/tmpl/default_batch_body.php

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,17 @@
5555
</div>
5656
</div>
5757
</div>
58-
<div class="row-fluid">
59-
<div class="span6">
60-
<div class="control-group">
61-
<label id="flip-ordering-id-lbl" for="flip-ordering-id" class="control-label">
62-
<?php echo JText::_('JLIB_HTML_BATCH_FLIPORDERING_LABEL'); ?>
63-
</label>
64-
<?php echo JHtml::_('select.booleanlist', 'batch[flip_ordering]', array(), 0, 'JYES', 'JNO', 'flip-ordering-id'); ?>
58+
<?php if ($extension === 'com_content') : ?>
59+
<div class="row-fluid">
60+
<div class="span6">
61+
<div class="control-group">
62+
<label id="flip-ordering-id-lbl" for="flip-ordering-id" class="control-label">
63+
<?php echo JText::_('JLIB_HTML_BATCH_FLIPORDERING_LABEL'); ?>
64+
</label>
65+
<?php echo JHtml::_('select.booleanlist', 'batch[flip_ordering]', array(), 0, 'JYES', 'JNO', 'flip-ordering-id'); ?>
66+
</div>
6567
</div>
6668
</div>
67-
</div>
69+
<?php endif; ?>
6870
</div>
6971

administrator/components/com_fields/controllers/field.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ protected function allowEdit($data = array(), $key = 'id')
9999
}
100100

101101
// Grant if current user is owner of the record
102-
return $user->id == $record->created_by;
102+
return $user->id == $record->created_user_id;
103103
}
104104

105105
return false;

libraries/src/Form/Rule/ModuleLayoutRule.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ class ModuleLayoutRule extends FormRule
2525
* A valid module layout field value consists of
2626
* - optionally a template name with only characters, numbers, hypens and
2727
* underscores, which can also be just "_" for layouts provided by the
28-
* module, followed by a colon
28+
* module, followed by a colon.
2929
* - the base name of the layout file, not starting with a dot and with
30-
* only characters, numbers, dots and hypens but no underscores (see
30+
* only characters, numbers, dots and hyphens but no underscores (see
3131
* method "getInput" of the "ModuleLayout" field).
3232
*
3333
* @var string

libraries/src/Plugin/PluginHelper.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -248,10 +248,7 @@ protected static function import($plugin, $autocreate = true, \JEventDispatcher
248248
{
249249
if (file_exists($path))
250250
{
251-
if (!isset($paths[$dispatcherHash][$path]))
252-
{
253-
require_once $path;
254-
}
251+
require_once $path;
255252

256253
$paths[$dispatcherHash][$path] = true;
257254

templates/protostar/offline.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777

7878
if ($this->params->get('logoFile'))
7979
{
80-
$logo = '<img src="' . JUri::root() . $this->params->get('logoFile') . '" alt="' . $sitename . '" />';
80+
$logo = '<img src="' . htmlspecialchars(JUri::root() . $this->params->get('logoFile'), ENT_QUOTES, 'UTF-8') . '" alt="' . $sitename . '" />';
8181
}
8282
elseif ($this->params->get('sitetitle'))
8383
{

0 commit comments

Comments
 (0)