mirror of
https://github.com/e107inc/e107.git
synced 2025-04-14 01:22:13 +02:00
More shortcode/parser BC (global) fixes.
This commit is contained in:
parent
b8cdc71795
commit
27e98076f0
@ -232,8 +232,8 @@ class admin_start
|
||||
// auto db update
|
||||
if ('0' == ADMINPERMS)
|
||||
{
|
||||
e107::getScBatch('admin');
|
||||
echo $tp->parseTemplate('{ADMIN_COREUPDATE=alert}',true);
|
||||
$sc = e107::getScBatch('admin');
|
||||
echo $tp->parseTemplate('{ADMIN_COREUPDATE=alert}',true, $sc);
|
||||
|
||||
require_once(e_ADMIN.'update_routines.php');
|
||||
update_check();
|
||||
|
@ -349,7 +349,7 @@ if (!function_exists("parse_admin"))
|
||||
{
|
||||
function parse_admin($ADMINLAYOUT)
|
||||
{
|
||||
e107::getScBatch('admin');
|
||||
$sc = e107::getScBatch('admin');
|
||||
$tp = e107::getParser();
|
||||
$adtmp = explode("\n", $ADMINLAYOUT);
|
||||
|
||||
@ -357,7 +357,7 @@ if (!function_exists("parse_admin"))
|
||||
{
|
||||
if (preg_match("/{.+?}/", $adtmp[$a]))
|
||||
{
|
||||
echo $tp->parseTemplate($adtmp[$a]);
|
||||
echo $tp->parseTemplate($adtmp[$a], true, $sc);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -536,7 +536,7 @@ class e_bbcode
|
||||
|
||||
$bbcode_shortcodes->setVars($data);
|
||||
|
||||
return "<div id='bbcode-panel-".$id."' class='mceToolbar bbcode-panel' {$visible}>".$tp->parseTemplate($BBCODE_TEMPLATE,TRUE)."</div>";
|
||||
return "<div id='bbcode-panel-".$id."' class='mceToolbar bbcode-panel' {$visible}>".$tp->parseTemplate($BBCODE_TEMPLATE,TRUE, $bbcode_shortcodes)."</div>";
|
||||
}
|
||||
|
||||
|
||||
|
@ -101,7 +101,7 @@ if (!USER || getperms('0'))
|
||||
}
|
||||
|
||||
|
||||
$text = $tp->parseTemplate($LOGIN_TABLE,true);
|
||||
$text = $tp->parseTemplate($LOGIN_TABLE,true, $sc);
|
||||
|
||||
|
||||
|
||||
@ -115,9 +115,9 @@ if (!USER || getperms('0'))
|
||||
// echo preg_replace("/\{(.*?)\}/e", 'varset($\1,"\1")', $LOGIN_TABLE_HEADER);
|
||||
$login_message = SITENAME; // $login_message = LAN_LOGIN_3." | ".SITENAME;
|
||||
echo LOGINMESSAGE;
|
||||
echo $tp->parseTemplate($LOGIN_TABLE_HEADER);
|
||||
echo $tp->parseTemplate($LOGIN_TABLE_HEADER, $sc);
|
||||
$ns->tablerender($login_message, $text, 'login_page');
|
||||
echo $tp->parseTemplate($LOGIN_TABLE_FOOTER);
|
||||
echo $tp->parseTemplate($LOGIN_TABLE_FOOTER, $sc);
|
||||
|
||||
|
||||
// echo preg_replace("/\{([^ ]*?)\}/e", 'varset($\1,"\1")', $LOGIN_TABLE_FOOTER);
|
||||
|
Loading…
x
Reference in New Issue
Block a user