diff options
author | Ludovic Arnaud <ludovic_arnaud@users.sourceforge.net> | 2003-02-07 01:01:50 +0000 |
---|---|---|
committer | Ludovic Arnaud <ludovic_arnaud@users.sourceforge.net> | 2003-02-07 01:01:50 +0000 |
commit | cab4c3c9d13167aa09f1ab393f238491e2de5ab3 (patch) | |
tree | beb563619a3080a034d04cb562c22bd458ef30e2 /phpBB/includes/template.php | |
parent | 9c19f5037807ca2e25fcf614055fb232517ee344 (diff) | |
download | forums-cab4c3c9d13167aa09f1ab393f238491e2de5ab3.tar forums-cab4c3c9d13167aa09f1ab393f238491e2de5ab3.tar.gz forums-cab4c3c9d13167aa09f1ab393f238491e2de5ab3.tar.bz2 forums-cab4c3c9d13167aa09f1ab393f238491e2de5ab3.tar.xz forums-cab4c3c9d13167aa09f1ab393f238491e2de5ab3.zip |
MCP update: now it can delete topics
git-svn-id: file:///svn/phpbb/trunk@3461 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/template.php')
-rw-r--r-- | phpBB/includes/template.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/template.php b/phpBB/includes/template.php index 44d93b0609..7a89c634e0 100644 --- a/phpBB/includes/template.php +++ b/phpBB/includes/template.php @@ -415,8 +415,8 @@ class Template { } // This will handle the remaining root-level varrefs - $text_blocks = preg_replace('#\{L_([a-z0-9\-_]*?)\}#is', '\' . ((isset($this->_tpldata[\'.\'][0][\'L_\1\'])) ? $this->_tpldata[\'.\'][0][\'L_\1\'] : ((isset($user->lang[\'\1\'])) ? $user->lang[\'\1\'] : \'{ \' . ucfirst(strtolower(str_replace(\'_\', \' \', \'\1\'))) . \' }\')) . \'', $text_blocks); - $text_blocks = preg_replace('#\{([a-z0-9\-_]*?)\}#is', '\' . ((isset($this->_tpldata[\'.\'][0][\'\1\'])) ? $this->_tpldata[\'.\'][0][\'\1\'] : \'\') . \'', $text_blocks); + $text_blocks = preg_replace('#\{L_([a-z0-9\-_]*?)\}#is', "' . ((isset(\$this->_tpldata['.'][0]['L_\\1'])) ? \$this->_tpldata['.'][0]['L_\\1'] : ((isset(\$user->lang['\\1'])) ? \$user->lang['\\1'] : '{ ' . ucfirst(strtolower(str_replace('_', ' ', '\\1'))) . ' }')) . '", $text_blocks); + $text_blocks = preg_replace('#\{([a-z0-9\-_]*?)\}#is', "' . ((isset(\$this->_tpldata['.'][0]['\\1'])) ? \$this->_tpldata['.'][0]['\\1'] : '') . '", $text_blocks); return; } |