1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-01 04:10:38 +02:00

Fixed e_ajax parse error from previous commit

This commit is contained in:
secretr
2010-07-27 10:45:55 +00:00
parent 49da61acef
commit fb6aba7f60
2 changed files with 5 additions and 5 deletions

View File

@@ -32,12 +32,12 @@ ob_implicit_flush(0);
if(vartrue($_POST['ajax_sc']) && e_AJAX_REQUEST) if(vartrue($_POST['ajax_sc']) && e_AJAX_REQUEST)
{ {
// temporary fix
global $register_sc;
if(isset($register_sc) && is_array($register_sc)) // Fix for missing THEME shortcodes. if(isset($register_sc) && is_array($register_sc)) // Fix for missing THEME shortcodes.
{ {
foreach($register_sc as $code) // parse errror fix from the previous commit
{ e107::getScParser()->loadThemeShortcodes();
$this->registered_codes[$code]['type'] = 'theme';
}
} }
list($fld,$parm) = explode("=", $_POST['ajax_sc'], 2); list($fld,$parm) = explode("=", $_POST['ajax_sc'], 2);
$prm = ($parm) ? "=".rawurldecode($parm) : ""; //var_dump($_GET); $prm = ($parm) ? "=".rawurldecode($parm) : ""; //var_dump($_GET);

View File

@@ -332,7 +332,7 @@ class e_parse_shortcode
* *
* @return e_parse_shortcode * @return e_parse_shortcode
*/ */
protected function loadThemeShortcodes() public function loadThemeShortcodes()
{ {
global $register_sc; global $register_sc;