mirror of
https://github.com/friendica/friendica
synced 2024-11-10 03:42:53 +00:00
check for style.php existence before inclusion
This commit is contained in:
parent
2589feef70
commit
f95db4382e
1 changed files with 2 additions and 1 deletions
|
@ -9,7 +9,8 @@ function view_init($a){
|
||||||
if ($a->argc == 4){
|
if ($a->argc == 4){
|
||||||
$theme = $a->argv[2];
|
$theme = $a->argv[2];
|
||||||
$THEMEPATH = "view/theme/$theme";
|
$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();
|
killme();
|
||||||
|
|
Loading…
Reference in a new issue