summaryrefslogtreecommitdiff
path: root/includes/cbt/CBTCompiler.php
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2007-01-11 19:06:07 +0000
committerPierre Schmitz <pierre@archlinux.de>2007-01-11 19:06:07 +0000
commita58285fd06c8113c45377c655dd43cef6337e815 (patch)
treedfe31d3d12652352fe44890b4811eda0728faefb /includes/cbt/CBTCompiler.php
parent20194986f6638233732ba1fc3e838f117d3cc9ea (diff)
Aktualisierung auf MediaWiki 1.9.0
Diffstat (limited to 'includes/cbt/CBTCompiler.php')
-rw-r--r--includes/cbt/CBTCompiler.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/includes/cbt/CBTCompiler.php b/includes/cbt/CBTCompiler.php
index 4ef8ee4a..59088bed 100644
--- a/includes/cbt/CBTCompiler.php
+++ b/includes/cbt/CBTCompiler.php
@@ -75,7 +75,6 @@ class CBTCompiler {
* Returns true on success, error message on failure
*/
function compile() {
- $fname = 'CBTProcessor::compile';
$this->mLastError = false;
$this->mOps = array();
@@ -222,7 +221,6 @@ class CBTCompiler {
if ( $char == '{' ) {
// Switch to text mode
++$p;
- $tokenStart = $p;
$this->doOpenText( $p, $end );
++$argCount;
} elseif ( $char == '}' ) {
@@ -292,7 +290,7 @@ class CBTCompiler {
wfProfileIn( $fname );
$stack = array();
- foreach( $this->mOps as $index => $op ) {
+ foreach( $this->mOps as $op ) {
switch( $op->opcode ) {
case CBT_PUSH:
$stack[] = $this->phpQuote( $op->arg1 );