* - App::MODE_NORMAL : Normal run with all features enabled
*
* @param string $basepath the Basepath of the Application
- *
+ * @throws \Friendica\Network\HTTPException\InternalServerErrorException
*/
public function determine($basepath = null)
{
$this->mode = 0;
- if (!file_exists($this->basepath . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR . 'local.ini.php')
- && !file_exists($this->basepath . DIRECTORY_SEPARATOR . '.htconfig.php')) {
+ if (!file_exists($this->basepath . '/config/local.config.php')
+ && !file_exists($this->basepath . '/config/local.ini.php')
+ && !file_exists($this->basepath . '/.htconfig.php')) {
return;
}
*/
public function has($mode)
{
- echo "mode: " . $this->mode . " with " . $mode;
-
- echo "value: " . ($this->mode & $mode);
-
return ($this->mode & $mode) > 0;
}