mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 20:00:37 +02:00
Bugfix: Theme shortcodes were missing from Ajax Shortcode-Replacer Routine.
This commit is contained in:
@@ -32,6 +32,13 @@ ob_implicit_flush(0);
|
||||
|
||||
if(vartrue($_POST['ajax_sc']) && e_AJAX_REQUEST)
|
||||
{
|
||||
if(isset($register_sc) && is_array($register_sc)) // Fix for missing THEME shortcodes.
|
||||
{
|
||||
foreach($register_sc as $code)
|
||||
{
|
||||
$this->registered_codes[$code]['type'] = 'theme';
|
||||
}
|
||||
}
|
||||
list($fld,$parm) = explode("=", $_POST['ajax_sc'], 2);
|
||||
$prm = ($parm) ? "=".rawurldecode($parm) : ""; //var_dump($_GET);
|
||||
echo e107::getParser()->parseTemplate("{".strtoupper($fld).$prm."}", true, $shortcodes);
|
||||
|
Reference in New Issue
Block a user