From 4bbb3569eba5428f76451c802922bc71783e4614 Mon Sep 17 00:00:00 2001 From: Erik Youngren Date: Thu, 4 Jun 2009 13:55:31 -0700 Subject: [PATCH] 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 --- core/util.inc.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/util.inc.php b/core/util.inc.php index d7116c44..77446970 100644 --- a/core/util.inc.php +++ b/core/util.inc.php @@ -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 *