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:
Erik Youngren 2009-06-04 13:55:31 -07:00 committed by Shish Moom
parent f77c6e64cd
commit 4bbb3569eb

View File

@ -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 *