Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
genotoul-bioinfo
ng6
Commits
007ea68f
Commit
007ea68f
authored
Apr 30, 2021
by
gsalin
Browse files
#204
parent
923cac6a
Changes
2
Hide whitespace changes
Inline
Side-by-side
ui/nG6/pi1/class.tx_nG6_pi1.php
View file @
007ea68f
...
...
@@ -255,9 +255,9 @@ class tx_nG6_pi1 extends \TYPO3\CMS\Frontend\Plugin\AbstractPlugin {
$txNG6Utils
=
new
tx_nG6_utils
;
//$smarty->register_object('tx_nG6_utils',$txNG6Utils);
$smarty
->
assign
_by_r
ef
(
'tx_nG6_utils'
,
$txNG6Utils
);
$smarty
->
assign
ByR
ef
(
'tx_nG6_utils'
,
$txNG6Utils
);
$smarty
->
assign
_by_r
ef
(
'retention_policy'
,
tx_nG6_utils
::
get_project_retention_policy
(
$projects
[
key
(
$projects
)][
'id'
]));
$smarty
->
assign
ByR
ef
(
'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'
]));
}
...
...
ui/nG6/res/smarty/libs/Smarty.class.php
View file @
007ea68f
...
...
@@ -738,8 +738,11 @@ class Smarty extends Smarty_Internal_Data {
public
function
__call
(
$name
,
$args
)
{
static
$camel_func
;
if
(
!
isset
(
$camel_func
))
$camel_func
=
create_function
(
'$c'
,
'return "_" . strtolower($c[1]);'
);
if
(
!
isset
(
$camel_func
)){
$camel_func
=
function
(
$matches
)
{
return
"_"
.
strtolower
(
$matches
[
1
]);
};
}
// see if this is a set/get for a property
$first3
=
strtolower
(
substr
(
$name
,
0
,
3
));
if
(
in_array
(
$first3
,
array
(
'set'
,
'get'
))
&&
substr
(
$name
,
3
,
1
)
!==
'_'
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment