summaryrefslogtreecommitdiff
path: root/includes/theme.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/theme.inc')
-rw-r--r--includes/theme.inc15
1 files changed, 15 insertions, 0 deletions
diff --git a/includes/theme.inc b/includes/theme.inc
index 05626586a..a0a1e1654 100644
--- a/includes/theme.inc
+++ b/includes/theme.inc
@@ -215,6 +215,21 @@ function path_to_theme() {
}
/**
+ * Return the path to the currently selected engine.
+ */
+function path_to_engine() {
+ global $theme, $theme_engine;
+
+ if (!isset($theme)) {
+ init_theme();
+ }
+
+ $engines = list_theme_engines();
+
+ return dirname($engines[$theme_engine]->filename);
+}
+
+/**
* Retrieve an associative array containing the settings for a theme.
*
* The final settings are arrived at by merging the default settings,