1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-22 13:41:52 +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
e107_files
e107_handlers

@ -32,12 +32,12 @@ ob_implicit_flush(0);
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.
{
foreach($register_sc as $code)
{
$this->registered_codes[$code]['type'] = 'theme';
}
// parse errror fix from the previous commit
e107::getScParser()->loadThemeShortcodes();
}
list($fld,$parm) = explode("=", $_POST['ajax_sc'], 2);
$prm = ($parm) ? "=".rawurldecode($parm) : ""; //var_dump($_GET);

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