diff options
| author | Meik Sievertsen <acydburn@phpbb.com> | 2007-01-21 18:33:45 +0000 |
|---|---|---|
| committer | Meik Sievertsen <acydburn@phpbb.com> | 2007-01-21 18:33:45 +0000 |
| commit | 576bb754e9f5b074c7c7c9bdc2debea4b5f65e1a (patch) | |
| tree | 044f9e15ce160c7b3ad7a3c6db4533de93367287 /phpBB/includes/functions_template.php | |
| parent | 61d4209aafac6a58bc3cecffaab8f821c4149688 (diff) | |
| download | forums-576bb754e9f5b074c7c7c9bdc2debea4b5f65e1a.tar forums-576bb754e9f5b074c7c7c9bdc2debea4b5f65e1a.tar.gz forums-576bb754e9f5b074c7c7c9bdc2debea4b5f65e1a.tar.bz2 forums-576bb754e9f5b074c7c7c9bdc2debea4b5f65e1a.tar.xz forums-576bb754e9f5b074c7c7c9bdc2debea4b5f65e1a.zip | |
fixing some bugs, most being submitted grammatical/spelling errors.
git-svn-id: file:///svn/phpbb/trunk@6915 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_template.php')
| -rw-r--r-- | phpBB/includes/functions_template.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/functions_template.php b/phpBB/includes/functions_template.php index 3c7259fe0a..e7ef24a49a 100644 --- a/phpBB/includes/functions_template.php +++ b/phpBB/includes/functions_template.php @@ -112,7 +112,7 @@ class template_compile // if they wish to display < and > $this->remove_php_tags($code); - // Pull out all block/statement level elements and seperate plain text + // Pull out all block/statement level elements and separate plain text preg_match_all('#<!-- PHP -->(.*?)<!-- ENDPHP -->#s', $code, $matches); $php_blocks = $matches[1]; $code = preg_replace('#<!-- PHP -->.*?<!-- ENDPHP -->#s', '<!-- PHP -->', $code); @@ -209,7 +209,7 @@ class template_compile $template_php .= (!$no_echo) ? ((!empty($trim_check_text)) ? $text_blocks[$i] : '') . ((!empty($compile_blocks[$i])) ? $compile_blocks[$i] : '') : ((!empty($trim_check_text)) ? $text_blocks[$i] : '') . ((!empty($compile_blocks[$i])) ? $compile_blocks[$i] : ''); } - // There will be a number of occassions where we switch into and out of + // There will be a number of occasions where we switch into and out of // PHP mode instantaneously. Rather than "burden" the parser with this // we'll strip out such occurences, minimising such switching $template_php = str_replace(' ?><?php ', ' ', $template_php); |
