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
mahara
mahara
Commits
45176f04
Commit
45176f04
authored
Jul 21, 2009
by
Richard Mansfield
Browse files
Remove calls to theme_setup(), theme_get_url()
parent
265c463f
Changes
2
Show whitespace changes
Inline
Side-by-side
htdocs/interaction/forum/view.php
View file @
45176f04
...
...
@@ -255,8 +255,8 @@ $smarty->assign('groupadmins', group_get_admin_ids($forum->groupid));
$smarty
->
assign
(
'stickytopics'
,
$stickytopics
);
$smarty
->
assign
(
'regulartopics'
,
$regulartopics
);
$smarty
->
assign
(
'moderators'
,
$moderators
);
$smarty
->
assign
(
'closedicon'
,
theme_
get_url
(
'images/closed.gif'
,
'interaction/forum
/
'
));
$smarty
->
assign
(
'subscribedicon'
,
theme_
get_url
(
'images/subscribed.gif'
,
'interaction/forum
/
'
));
$smarty
->
assign
(
'closedicon'
,
$THEME
->
get_url
(
'images/closed.gif'
,
false
,
'interaction/forum'
));
$smarty
->
assign
(
'subscribedicon'
,
$THEME
->
get_url
(
'images/subscribed.gif'
,
false
,
'interaction/forum'
));
$smarty
->
assign
(
'pagination'
,
$pagination
[
'html'
]);
$smarty
->
assign
(
'INLINEJAVASCRIPT'
,
$inlinejavascript
);
$smarty
->
display
(
'interaction:forum:view.tpl'
);
...
...
htdocs/lib/smarty/mahara/resource.interaction.php
View file @
45176f04
...
...
@@ -12,6 +12,7 @@
*/
function
smarty_resource_interaction_source
(
$tpl_name
,
&
$tpl_source
,
&
$smarty_obj
)
{
global
$THEME
;
$name
=
explode
(
':'
,
$tpl_name
);
$plugin_name
=
$name
[
0
];
...
...
@@ -20,7 +21,7 @@ function smarty_resource_interaction_source ($tpl_name, &$tpl_source, &$smarty_o
$basedir
=
get_config
(
'docroot'
)
.
'interaction/'
.
$plugin_name
.
'/theme/'
;
foreach
(
theme_setup
()
->
inheritance
as
$theme
)
{
foreach
(
$THEME
->
inheritance
as
$theme
)
{
$filename
=
$basedir
.
$theme
.
'/'
.
$plugin_path
;
if
(
is_readable
(
$filename
))
{
$tpl_source
=
file_get_contents
(
$filename
);
...
...
@@ -32,6 +33,7 @@ function smarty_resource_interaction_source ($tpl_name, &$tpl_source, &$smarty_o
}
function
smarty_resource_interaction_timestamp
(
$tpl_name
,
&
$tpl_timestamp
,
&
$smarty_obj
)
{
global
$THEME
;
$name
=
explode
(
':'
,
$tpl_name
);
$plugin_name
=
$name
[
0
];
...
...
@@ -39,7 +41,7 @@ function smarty_resource_interaction_timestamp($tpl_name, &$tpl_timestamp, &$sma
$basedir
=
get_config
(
'docroot'
)
.
'interaction/'
.
$plugin_name
.
'/theme/'
;
foreach
(
theme_setup
()
->
inheritance
as
$theme
)
{
foreach
(
$THEME
->
inheritance
as
$theme
)
{
$filename
=
$basedir
.
$theme
.
'/'
.
$plugin_path
;
if
(
is_readable
(
$filename
))
{
$tpl_timestamp
=
filemtime
(
$filename
);
...
...
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