Commit 007ea68f authored by gsalin's avatar gsalin
Browse files
parent 923cac6a
...@@ -255,9 +255,9 @@ class tx_nG6_pi1 extends \TYPO3\CMS\Frontend\Plugin\AbstractPlugin { ...@@ -255,9 +255,9 @@ class tx_nG6_pi1 extends \TYPO3\CMS\Frontend\Plugin\AbstractPlugin {
$txNG6Utils = new tx_nG6_utils; $txNG6Utils = new tx_nG6_utils;
//$smarty->register_object('tx_nG6_utils',$txNG6Utils); //$smarty->register_object('tx_nG6_utils',$txNG6Utils);
$smarty->assign_by_ref('tx_nG6_utils', $txNG6Utils); $smarty->assignByRef('tx_nG6_utils', $txNG6Utils);
$smarty->assign_by_ref('retention_policy', tx_nG6_utils::get_project_retention_policy($projects[key($projects)]['id'])); $smarty->assignByRef('retention_policy', tx_nG6_utils::get_project_retention_policy($projects[key($projects)]['id']));
$smarty->assign('space_purge_msg', tx_nG6_utils::get_project_purge_msg($projects[key($projects)]['id'])); $smarty->assign('space_purge_msg', tx_nG6_utils::get_project_purge_msg($projects[key($projects)]['id']));
} }
......
...@@ -738,8 +738,11 @@ class Smarty extends Smarty_Internal_Data { ...@@ -738,8 +738,11 @@ class Smarty extends Smarty_Internal_Data {
public function __call($name, $args) public function __call($name, $args)
{ {
static $camel_func; static $camel_func;
if (!isset($camel_func)) if (!isset($camel_func)){
$camel_func = create_function('$c', 'return "_" . strtolower($c[1]);'); $camel_func = function ($matches) {
return "_" . strtolower($matches[1]);
};
}
// see if this is a set/get for a property // see if this is a set/get for a property
$first3 = strtolower(substr($name, 0, 3)); $first3 = strtolower(substr($name, 0, 3));
if (in_array($first3, array('set', 'get')) && substr($name, 3, 1) !== '_') { if (in_array($first3, array('set', 'get')) && substr($name, 3, 1) !== '_') {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment