check for style.php existence before inclusion

This commit is contained in:
friendica 2012-04-01 16:21:55 -07:00
parent 2589feef70
commit f95db4382e

View file

@ -9,6 +9,7 @@ function view_init($a){
if ($a->argc == 4){
$theme = $a->argv[2];
$THEMEPATH = "view/theme/$theme";
if(file_exists("view/theme/$theme/style.php"))
require_once("view/theme/$theme/style.php");
}