} elseif ($display == 'raw') {
$this->_page_type = NO_SKIN;
} elseif ($display == 'full') {
- $this->_page_typ = SKINNED;
+ $this->_page_type = SKINNED;
}
if ($this->_page_type == SIMPLE) {
* compilation plugin used to import $globals confing through #globals.foo.bar# directives
*/
- function at_to_globals($tpl_source, &$smarty)
+ function at_to_globals($tpl_source, $smarty)
{
return preg_replace('/#globals\.([a-zA-Z0-9_.]+?)#/e', '_to_globals(\'\\1\')', $tpl_source);
}
// }}}
// {{{ function trimwhitespace
- function trimwhitespace($source, &$smarty)
+ function trimwhitespace($source, $smarty)
{
$tags = '(script|pre|textarea)';
preg_match_all("!<$tags.*?>.*?</(\\1)>!ius", $source, $tagsmatches);
// }}}
// {{{ function wiki_include
- function wiki_include($source, &$smarty)
+ function wiki_include($source, $smarty)
{
global $globals;
return preg_replace('/\{include( [^}]*)? wiki=([^} ]+)(.*?)\}/ui',
$source);
}
- function core_include($source, &$smarty)
+ function core_include($source, $smarty)
{
global $globals;
return preg_replace('/\{include( [^}]*)? core=([^} ]+)(.*?)\}/ui',
// }}}
//{{{ function hasPerm
- function if_rewrites($source, &$smarty)
+ function if_rewrites($source, $smarty)
{
$perms = 'isset($smarty.session.user|smarty:nodefaults) && $smarty.session.user';
return preg_replace(array('/\{(else)?if([^}]*) (\!?)hasPerms?\(([^)]+)\)([^}]*)\}/',
// }}}
// {{{
- function form_force_encodings($source, &$smarty)
+ function form_force_encodings($source, $smarty)
{
return preg_replace('/<form[^\w]/',
'\0 accept-charset="utf-8" ',
'//]]></script>';
}
- function hide_emails($source, &$smarty)
+ function hide_emails($source, $smarty)
{
if (!strpos($source, '@')) {
return $source;