aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-04-01 16:21:55 -0700
committerfriendica <info@friendica.com>2012-04-01 16:21:55 -0700
commitf95db4382eb92f0e29ab3cef2f285ea6c20b2912 (patch)
tree19ea31aa24ee624fb1cd4dba0eb03090e2c07379
parent2589feef70cdc7d98f61a25035be82713ff93725 (diff)
downloadvolse-hubzilla-f95db4382eb92f0e29ab3cef2f285ea6c20b2912.tar.gz
volse-hubzilla-f95db4382eb92f0e29ab3cef2f285ea6c20b2912.tar.bz2
volse-hubzilla-f95db4382eb92f0e29ab3cef2f285ea6c20b2912.zip
check for style.php existence before inclusion
-rw-r--r--mod/view.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/mod/view.php b/mod/view.php
index 33aa23f44..15b3733b3 100644
--- a/mod/view.php
+++ b/mod/view.php
@@ -9,7 +9,8 @@ function view_init($a){
if ($a->argc == 4){
$theme = $a->argv[2];
$THEMEPATH = "view/theme/$theme";
- require_once("view/theme/$theme/style.php");
+ if(file_exists("view/theme/$theme/style.php"))
+ require_once("view/theme/$theme/style.php");
}
killme();