summaryrefslogtreecommitdiffstats
path: root/lib/themes.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2005-10-12 20:50:26 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2005-10-12 20:50:26 +0000
commit959c7b7a13c51aea549523f134d6ef526e3b977c (patch)
tree73c0e633c68fc95a4225a97d4444bc6e34131fff /lib/themes.php
parente8785ed7554839db296d7b8d8f9a938ed0758d70 (diff)
downloadampache-959c7b7a13c51aea549523f134d6ef526e3b977c.tar.gz
ampache-959c7b7a13c51aea549523f134d6ef526e3b977c.tar.bz2
ampache-959c7b7a13c51aea549523f134d6ef526e3b977c.zip
fixed up some minor formating errors, and also the preferences mojo see changelog for details
Diffstat (limited to 'lib/themes.php')
-rw-r--r--lib/themes.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/themes.php b/lib/themes.php
index ca4a92c7..dfe49292 100644
--- a/lib/themes.php
+++ b/lib/themes.php
@@ -121,4 +121,21 @@ function get_theme_author($theme_name) {
return $results['author'];
} // get_theme_author
+
+/*!
+ @function theme_exists
+ @discussion this function checks to make sure that a theme actually exists
+*/
+function theme_exists($theme_name) {
+
+ $theme_path = conf('prefix') . "/themes/" . $theme_name . "/theme.cfg.php";
+
+ if (!file_exists($theme_path)) {
+ return false;
+ }
+
+ return true;
+
+} // theme_exists
+
?>