fix for #3 (hopefully)

This commit is contained in:
kolaente 2018-01-31 23:33:03 +01:00
parent 7c1f581ff1
commit a54a31a0fc
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
2 changed files with 2 additions and 1 deletions

View File

@ -8,6 +8,7 @@ if (hasPerm('view_dashboard'))
$lang->set('Pages you can edit', 'sp_edit_pages_to_edit', 'en');
//If pages are available for confirmation, show them
// TODO: Check if the config exists
$config = parse_ini_file('../apps/SimplePages/backend/confirm.ini');
if ($_SESSION['userid'] == $config['confirmationUser'])
{

View File

@ -19,7 +19,7 @@ $confirmationRequierd = false;
$iniFile = 'confirm.ini';
if(strpos($_SERVER['SCRIPT_FILENAME'], '/apps/') === false)
{
$iniFile = '../SimplePages/backend/confirm.ini';
$iniFile = __DIR__.'/../SimplePages/backend/confirm.ini';
}
if(file_exists($iniFile))