@@ 1182-1184 (lines=3) @@ | ||
1179 | */ |
|
1180 | public function _contextValue($key, $parent = false) |
|
1181 | { |
|
1182 | if (preg_match('/@\d+\/u/', $key)) { |
|
1183 | $key = str_replace(array('@', '/u'), array('@u(', ')'), $key); |
|
1184 | } |
|
1185 | list($key, $str) = explode('@', $key, 2); |
|
1186 | ||
1187 | if (strpos($str, '(')) { |
@@ 464-466 (lines=3) @@ | ||
461 | $modx->config['site_status'] = 0; |
|
462 | for ($i = 1; $i <= $maxPasses; $i++) { |
|
463 | $html = $out; |
|
464 | if (preg_match('/\[\!(.*)\!\]/us', $out)) { |
|
465 | $out = str_replace(array('[!', '!]'), array('[[', ']]'), $out); |
|
466 | } |
|
467 | if ($i <= $minPasses || $out != $html) { |
|
468 | $out = $modx->parseDocumentSource($out); |
|
469 | } else { |