1
0
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:
CaMer0n
2010-07-09 18:11:06 +00:00
parent 0b74b8af7b
commit 0add952881

View File

@@ -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);