You know that feeling you've done something the hard way? Yeah. Replacing theme_redirect with a three line function in core/utils.inc.php
This commit is contained in:
parent
f77c6e64cd
commit
4bbb3569eb
@ -91,6 +91,12 @@ function make_link($page=null, $query=null) {
|
||||
}
|
||||
}
|
||||
|
||||
function theme_file($filepath) {
|
||||
global $config;
|
||||
$theme = $config->get_string("theme","default");
|
||||
return make_link("themes/$theme/$filepath");
|
||||
}
|
||||
|
||||
|
||||
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\
|
||||
* Misc *
|
||||
|
Loading…
x
Reference in New Issue
Block a user