Skip to content

Commit 73d6a09

Browse files
committed
2.12.3 Bug Fix: Create Database Script
1 parent 47360a2 commit 73d6a09

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

src/includes/constants.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/* ------------------------------------------
33
* @VERSION
44
* ------------------------------------------*/
5-
$C_VERSION = "2.12.2";
5+
$C_VERSION = "2.12.3";
66
$C_VERSION_STRING = "Version: " . $C_VERSION;
77
$C_MAX_HINT_LEVEL = 1;
88

src/set-up-database.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1450,14 +1450,10 @@ function format($pMessage, $pLevel) {
14501450

14511451
// Determine if the referer matches certain conditions
14521452
$lReferredFromOfflinePage = strpos($lHTTPReferer, "database-offline.php") !== false;
1453-
$lContainsURLParameters = strpos($lHTTPReferer, "?") !== false;
1454-
1455-
// Construct notification code parameter appropriately
1456-
$lNotificationParam = $lContainsURLParameters ? "&popUpNotificationCode=SUD1" : "?popUpNotificationCode=SUD1";
14571453

14581454
// Redirect to home page if offline page triggered the reset
14591455
if ($lReferredFromOfflinePage) {
1460-
$lRedirectLocation = "index.php?page=home.php" . $lNotificationParam;
1456+
$lRedirectLocation = "index.php?page=home.php&popUpNotificationCode=SUD1";
14611457
} else {
14621458
$lRedirectLocation = "index.php?page=home.php";
14631459
}

version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.12.2
1+
2.12.3

0 commit comments

Comments
 (0)