diff options
author | friendica <info@friendica.com> | 2012-04-01 16:21:55 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-04-01 16:21:55 -0700 |
commit | f95db4382eb92f0e29ab3cef2f285ea6c20b2912 (patch) | |
tree | 19ea31aa24ee624fb1cd4dba0eb03090e2c07379 /mod/view.php | |
parent | 2589feef70cdc7d98f61a25035be82713ff93725 (diff) | |
download | volse-hubzilla-f95db4382eb92f0e29ab3cef2f285ea6c20b2912.tar.gz volse-hubzilla-f95db4382eb92f0e29ab3cef2f285ea6c20b2912.tar.bz2 volse-hubzilla-f95db4382eb92f0e29ab3cef2f285ea6c20b2912.zip |
check for style.php existence before inclusion
Diffstat (limited to 'mod/view.php')
-rw-r--r-- | mod/view.php | 3 |
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(); |