aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/template.php
diff options
context:
space:
mode:
authorLudovic Arnaud <ludovic_arnaud@users.sourceforge.net>2003-02-07 01:01:50 +0000
committerLudovic Arnaud <ludovic_arnaud@users.sourceforge.net>2003-02-07 01:01:50 +0000
commitcab4c3c9d13167aa09f1ab393f238491e2de5ab3 (patch)
treebeb563619a3080a034d04cb562c22bd458ef30e2 /phpBB/includes/template.php
parent9c19f5037807ca2e25fcf614055fb232517ee344 (diff)
downloadforums-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.php4
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;
}