X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=phpfspot.git;a=blobdiff_plain;f=phpfspot_cfg.php.dist;h=07795c64e3d110cc4ad60266d31d1f9b92dad5e1;hp=1c399daa23da2892f3c9e10565bae2f084622dc9;hb=223a626abc5757fbce0b6ce4e0a4a4a1cf4980e4;hpb=3dad235d36e8e2df34540f058cd3600de60ef652 diff --git a/phpfspot_cfg.php.dist b/phpfspot_cfg.php.dist index 1c399da..07795c6 100644 --- a/phpfspot_cfg.php.dist +++ b/phpfspot_cfg.php.dist @@ -1,5 +1,26 @@ hide_tags)) $this->showError("Please set \$hide_tags in phpfspot_cfg"); + if(!isset($this->theme_name)) + $this->showError("Please set \$theme_name in phpfspot_cfg"); + if(isset($this->error_found) && $this->error_found) exit(1); + /* check for pending slash on web_path */ + if(!preg_match("/\/$/", $this->web_path)) + $this->web_path.= "/"; + } // __construct() private function showError($text)