Skip to content
This repository has been archived by the owner on Jan 27, 2021. It is now read-only.

Commit

Permalink
fix for #3 (hopefully)
Browse files Browse the repository at this point in the history
  • Loading branch information
kolaente committed Jan 31, 2018
1 parent 7c1f581 commit a54a31a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions apps/SimplePages/backend/dashboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
$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'])
{
Expand Down
2 changes: 1 addition & 1 deletion apps/SimplePages/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
$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))
Expand Down

0 comments on commit a54a31a

Please sign in to comment.