Skip to content

Commit 87e1371

Browse files
committed
Move app_version.php and database_version.php to includes folder update all assocoiated links, remove 2 legacy php files maintence and legacy_debug
1 parent f29d122 commit 87e1371

12 files changed

+8
-358
lines changed

admin_debug.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
<?php
22

33
require_once "includes/inc_all_admin.php";
4-
5-
require_once "database_version.php";
6-
4+
require_once "includes/database_version.php";
75
require_once "config.php";
86

97
$checks = [];

admin_legacy_debug.php

-335
This file was deleted.

admin_settings_maintenance.php

-13
This file was deleted.

admin_update.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
require_once "includes/inc_all_admin.php";
33

4-
require_once "database_version.php";
4+
require_once "includes/database_version.php";
55

66
$updates = fetchUpdates();
77

File renamed without changes.
File renamed without changes.

post/admin/admin_update.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@
288288
validateAdminRole(); // Old function
289289

290290
// Get the current version
291-
require_once ('database_version.php');
291+
require_once ('includes/database_version.php');
292292

293293
// Perform upgrades, if required
294294
require_once ('database_updates.php');

scripts/setup_cli.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
}
9797

9898
require_once "../functions.php";
99-
require_once "../database_version.php";
99+
require_once "../includes/database_version.php";
100100

101101
if (!isset($config_enable_setup)) {
102102
$config_enable_setup = 1;

scripts/update_cli.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ function printHelp() {
103103

104104
// If "update_db" is requested
105105
if (isset($options['update_db'])) {
106-
require_once "../database_version.php";
106+
require_once "../includes/database_version.php";
107107

108108
$latest_db_version = LATEST_DATABASE_VERSION;
109109

0 commit comments

Comments
 (0)