Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions mmlc_installer.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ public function invokeIndex()
public function doSystemCheck()
{
$errors = [];

if (!ini_get('allow_url_fopen')) {
$errors[] = 'No connection to server. <strong>allow_url_fopen</strong> has to be activated in php.ini.';
}
Expand All @@ -54,6 +55,10 @@ public function doSystemCheck()
$errors[] = 'Current PHP version is ' . PHP_VERSION . '. The MMLC needs version <strong>' . self::REQUIRED_PHP_VERSION . '</strong> or higher.';
}

if (!file_exists(__DIR__ . '/includes/classes/modified_api.php')) {
$errors[] = '<code style="display: inline; padding: 2px 4px;">' . __DIR__ . '</code> is the wrong installation directory. Please use the shop root.';
}

return $errors;
}

Expand Down