File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed
Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 66 * - SESSION_COOKIE_PATH
77 * - SESSION_COOKIE_DOMAIN
88 * - SESSION_COOKIE_NAME
9- * - MODX_CLASS
9+ * - EVO_CLASS
1010 * - EVO_CORE_PATH
1111 * - MODX_SITE_HOSTNAMES
1212 * - MGR_DIR
Original file line number Diff line number Diff line change 66 */
77 function evo ()
88 {
9- if (!defined ('MODX_CLASS ' )) {
9+ if (!defined ('EVO_CLASS ' )) {
1010 if (!class_exists ('\DocumentParser ' )) {
11- throw new RuntimeException ('MODX_CLASS not defined and EvolutionCMS\Core class not exists ' );
11+ throw new RuntimeException ('EVO_CLASS not defined and EvolutionCMS\Core class not exists ' );
1212 }
13- define ('MODX_CLASS ' , '\DocumentParser ' );
13+ define ('EVO_CLASS ' , '\DocumentParser ' );
1414 }
1515
1616 global $ modx ;
1717 if ($ modx === null ) {
1818 try {
19- $ obj = new ReflectionClass (MODX_CLASS );
19+ $ obj = new ReflectionClass (EVO_CLASS );
2020 $ modx = $ obj ->newInstanceWithoutConstructor ()->getInstance ();
2121 } catch (ReflectionException $ exception ) {
2222 echo $ exception ->getMessage ();
Original file line number Diff line number Diff line change 3232}
3333
3434/**
35- * @deprecated use EVO_CLASS
35+ * @deprecated since EVO 3.2.6, use EVO_CLASS
36+ * @TODO: will be delete EVO 3.5
3637 */
3738if (!defined ('MODX_CLASS ' )) {
3839 define ('MODX_CLASS ' , env ('MODX_CLASS ' , '\DocumentParser ' ));
You can’t perform that action at this time.
0 commit comments