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:
@@ -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);
|
||||||
|
@@ -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;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user