mirror of
https://github.com/e107inc/e107.git
synced 2025-08-16 03:24:20 +02:00
Login page template/shortcode fixes.
This commit is contained in:
@@ -828,13 +828,18 @@ class e_parse extends e_parser
|
||||
* @param object $eVars - XXX more info needed.
|
||||
* @return string
|
||||
*/
|
||||
function parseTemplate($text, $parseSCFiles = TRUE, $extraCodes = null, $eVars = null)
|
||||
function parseTemplate($text, $parseSCFiles = true, $extraCodes = null, $eVars = null)
|
||||
{
|
||||
if(!empty($extraCodes) && $this->isSimpleParse($extraCodes)) // support for a combined simple and standard template parse. - (eg. used by signup email template.)
|
||||
{
|
||||
$text = $this->simpleParse($text, $extraCodes, false);
|
||||
}
|
||||
|
||||
if(!is_bool($parseSCFiles))
|
||||
{
|
||||
trigger_error("\$parseSCFiles in parseTemplate() was given incorrect data");
|
||||
}
|
||||
|
||||
return e107::getScParser()->parseCodes($text, $parseSCFiles, $extraCodes, $eVars);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user