Skip to content

Commit 1dc4453

Browse files
committed
[REF] Mark $modx as Deprecated.
1 parent 2c571c7 commit 1dc4453

File tree

2 files changed

+21
-3
lines changed

2 files changed

+21
-3
lines changed

index.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,17 @@
128128
define('EVO_CLI', false);
129129
}
130130

131+
/**
132+
* @deprecated
133+
* @since 3.5.3
134+
*
135+
* Use $evo or/and evo() instead.
136+
*
137+
* @todo [remove@5.x] Remove in Evolution CMS 5.x
138+
*/
139+
$GLOBALS['modx'] = $modx = evo();
131140
// Initiate a new document parser
132-
$GLOBALS['evo'] = $GLOBALS['modx'] = $evo = $modx = evo();
141+
$GLOBALS['evo'] = $evo = evo();
133142
$evo->minParserPasses = 1; // min number of parser recursive loops or passes
134143
$evo->maxParserPasses = 10; // max number of parser recursive loops or passes
135144
$evo->dumpSQL = false;

manager/index.php

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,17 @@
132132
) . "/";
133133
}
134134

135-
// initiate the content manager class
136-
$evo = evo();
135+
/**
136+
* @deprecated
137+
* @since 3.5.3
138+
*
139+
* Use $evo or/and evo() instead.
140+
*
141+
* @todo [remove@5.x] Remove in Evolution CMS 5.x
142+
*/
143+
$GLOBALS['modx'] = $modx = evo();
144+
// Initiate a new document parser
145+
$GLOBALS['evo'] = $evo = evo();
137146
$evo->mstart = $mstart;
138147
$useLaravelSession = defined('EVO_SESSION') && EVO_SESSION;
139148
if ($useLaravelSession) {

0 commit comments

Comments
 (0)