Skip to content

Commit 4de5538

Browse files
committed
Support old PHP versions
Signed-off-by: Xheni Myrtaj <[email protected]>
1 parent bda1e50 commit 4de5538

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

index.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ class updater
1616

1717
const DOWNLOAD_PATH = '../tmp_uploaded_update';
1818
const ELIGIBLE_SESSION_KEY = 'phplist_updater_eligible';
19-
const CONFIG_FILE = __DIR__ . '/../config/config.php';
2019

2120
private $excludedFiles = array(
2221
'dl.php',
@@ -285,7 +284,7 @@ function deleteFiles()
285284
*/
286285
function getConnection()
287286
{
288-
$standardConfig = self::CONFIG_FILE;
287+
$standardConfig = __DIR__ . '/../config/config.php';
289288

290289
if (isset($_SERVER['ConfigFile']) && is_file($_SERVER['ConfigFile'])) {
291290
include $_SERVER['ConfigFile'];
@@ -325,7 +324,7 @@ function getConnection()
325324
*/
326325
function addMaintenanceMode()
327326
{
328-
$standardConfig = self::CONFIG_FILE;
327+
$standardConfig = __DIR__ . '/../config/config.php';
329328
if (isset($_SERVER['ConfigFile']) && is_file($_SERVER['ConfigFile'])) {
330329
include $_SERVER['ConfigFile'];
331330
} elseif (file_exists($standardConfig)) {
@@ -367,7 +366,7 @@ function addMaintenanceMode()
367366
*/
368367
function removeMaintenanceMode()
369368
{
370-
$standardConfig = self::CONFIG_FILE;
369+
$standardConfig = __DIR__ . '/../config/config.php';
371370
if (isset($_SERVER['ConfigFile']) && is_file($_SERVER['ConfigFile'])) {
372371
include $_SERVER['ConfigFile'];
373372
} elseif (file_exists($standardConfig)) {

0 commit comments

Comments
 (0)