@@ 110-113 (lines=4) @@ | ||
107 | if (isset($coreClass) && class_exists($coreClass)) { |
|
108 | $modx = new $coreClass; |
|
109 | } |
|
110 | if (!isset($modx) || !($modx instanceof \DocumentParser)) { |
|
111 | include_once(MODX_MANAGER_PATH.'includes/document.parser.class.inc.php'); |
|
112 | $modx = new \DocumentParser; |
|
113 | } |
|
114 | ||
115 | // set some parser options |
|
116 | $modx->minParserPasses = 1; // min number of parser recursive loops or passes |
@@ 144-147 (lines=4) @@ | ||
141 | if (isset($coreClass) && class_exists($coreClass)) { |
|
142 | $modx = new $coreClass; |
|
143 | } |
|
144 | if (!isset($modx) || !($modx instanceof \DocumentParser)) { |
|
145 | include_once(MODX_MANAGER_PATH.'includes/document.parser.class.inc.php'); |
|
146 | $modx = new \DocumentParser; |
|
147 | } |
|
148 | ||
149 | $modx->loadExtension("ManagerAPI"); |
|
150 | $modx->getSettings(); |