mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 21:57:51 +02:00
SimpleParse Fix
This commit is contained in:
@@ -738,8 +738,12 @@ class e_parse
|
|||||||
{
|
{
|
||||||
$unset = ($this->replaceUnset !== false ? $this->replaceUnset : $tmp[0]);
|
$unset = ($this->replaceUnset !== false ? $this->replaceUnset : $tmp[0]);
|
||||||
$key = $tmp[1];
|
$key = $tmp[1];
|
||||||
return ($this->replaceVars[$key] !== null ? $this->replaceVars[$key]: $unset);
|
if(is_array($this->replaceVars))
|
||||||
// return ($this->replaceVars->$tmp[1] !== null ? $this->replaceVars->$tmp[1] : $unset); // Doesn't work.
|
{
|
||||||
|
return ($this->replaceVars[$key] !== null ? $this->replaceVars[$key]: $unset);
|
||||||
|
}
|
||||||
|
//
|
||||||
|
return ($this->replaceVars->$tmp[1] !== null ? $this->replaceVars->$tmp[1] : $unset); // Doesn't work.
|
||||||
}
|
}
|
||||||
|
|
||||||
function htmlwrap($str, $width, $break = "\n", $nobreak = "a", $nobr = "pre", $utf = FALSE)
|
function htmlwrap($str, $width, $break = "\n", $nobreak = "a", $nobr = "pre", $utf = FALSE)
|
||||||
|
Reference in New Issue
Block a user