Skip to content

Commit

Permalink
Add array_values to Smarty function list
Browse files Browse the repository at this point in the history
  • Loading branch information
asmecher committed Nov 28, 2023
1 parent c72d06b commit cfac89c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions classes/template/PKPTemplateManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,7 @@ public function initialize($request)
$this->registerPlugin('modifier', 'strstr', strstr(...));
$this->registerPlugin('modifier', 'strval', strval(...));
$this->registerPlugin('modifier', 'array_key_first', array_key_first(...));
$this->registerPlugin('modifier', 'array_values', array_values(...));
$this->registerPlugin('modifier', 'fatalError', fatalError(...));
$this->registerPlugin('modifier', 'translate', $this->smartyTranslateModifier(...));
$this->registerPlugin('modifier', 'strip_unsafe_html', \PKP\core\PKPString::stripUnsafeHtml(...));
Expand Down Expand Up @@ -1328,7 +1329,7 @@ public static function &getManager($request = null)
}
assert($request instanceof PKPRequest);

$instance = & Registry::get('templateManager', true, null); // Reference required
$instance = &Registry::get('templateManager', true, null); // Reference required

if ($instance === null) {
$instance = new TemplateManager();
Expand Down Expand Up @@ -1368,9 +1369,9 @@ public function getFBV()
*/
public function displaySidebar($hookName, $args)
{
$params = & $args[0];
$smarty = & $args[1];
$output = & $args[2];
$params = &$args[0];
$smarty = &$args[1];
$output = &$args[2];

if ($this->_request->getContext()) {
$blocks = $this->_request->getContext()->getData('sidebar');
Expand Down

0 comments on commit cfac89c

Please sign in to comment.