mirror of https://github.com/Mowie/Mowie
fix for #3 (hopefully)
This commit is contained in:
parent
7c1f581ff1
commit
a54a31a0fc
|
@ -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'])
|
||||
{
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue