Skip to content

Commit 5228f62

Browse files
committed
[REF] MODX_ to EVO_.
1 parent a8c726a commit 5228f62

2 files changed

Lines changed: 11 additions & 12 deletions

File tree

manager/index.php

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,11 @@
6565
define('IN_INSTALL_MODE', false);
6666
}
6767

68-
if (!defined('MODX_API_MODE')) {
69-
define('MODX_API_MODE', false);
68+
if (!defined('EVO_API_MODE')) {
69+
define('EVO_API_MODE', false);
7070
}
7171

72-
if (! defined('IN_PARSER_MODE')) {
72+
if (!defined('IN_PARSER_MODE')) {
7373
define('IN_PARSER_MODE', false);
7474
}
7575

@@ -110,11 +110,10 @@
110110
header('X-UA-Compatible: IE=edge;FF=3;OtherUA=4');
111111
header('X-XSS-Protection: 0');
112112

113-
// check PHP version. EVO is compatible with php 5 (5.6.0+)
114-
$php_ver_comp = version_compare(phpversion(), "7.1.3");
113+
$php_ver_comp = version_compare(phpversion(), "8.3");
115114
// -1 if left is less, 0 if equal, +1 if left is higher
116115
if ($php_ver_comp < 0) {
117-
echo 'Evolution CMS is compatible with PHP version 7.1.3 and higher. This server is using version ' . phpversion() . '. Please upgrade your PHP installation!';
116+
echo 'Evolution CMS is compatible with PHP version 8.3 and higher. This server is using version ' . phpversion() . '. Please upgrade your PHP installation!';
118117
exit;
119118
}
120119

@@ -134,15 +133,15 @@
134133
}
135134

136135
// initiate the content manager class
137-
$modx = evo();
138-
$modx->mstart = $mstart;
136+
$evo = evo();
137+
$evo->mstart = $mstart;
139138
$useLaravelSession = defined('EVO_SESSION') && EVO_SESSION;
140139
if ($useLaravelSession) {
141140
\EvoSessionProxy::init();
142141
}
143-
$modx->sid = session_id();
142+
$evo->sid = session_id();
144143

145-
//$settings = $modx->allConfig();
144+
//$settings = $evo->allConfig();
146145
//extract($settings, EXTR_OVERWRITE);
147146

148147

@@ -161,6 +160,6 @@
161160
$action = 0;
162161

163162
// Update table active_user_sessions
164-
$modx->updateValidatedUserSession();
163+
$evo->updateValidatedUserSession();
165164

166165
ManagerTheme::handleRoute();

manager/views/partials/header.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
var evo = {};
2323
}
2424
if (!evo.config) {
25-
evo.config = {};
25+
evo.config = {};
2626
}
2727
var actions,
2828
actionStay = [],

0 commit comments

Comments
 (0)