dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6b6fe23
)
Tweak for r79018: fatal errors due to something calling parser clearState when mOptio...
author
Brion Vibber
<brion@users.mediawiki.org>
Tue, 8 Feb 2011 13:31:30 +0000
(13:31 +0000)
committer
Brion Vibber
<brion@users.mediawiki.org>
Tue, 8 Feb 2011 13:31:30 +0000
(13:31 +0000)
includes/parser/Parser.php
patch
|
blob
|
history
diff --git
a/includes/parser/Parser.php
b/includes/parser/Parser.php
index
b7c63bf
..
9d9ccad
100644
(file)
--- a/
includes/parser/Parser.php
+++ b/
includes/parser/Parser.php
@@
-194,7
+194,9
@@
class Parser {
$this->firstCallInit();
}
$this->mOutput = new ParserOutput;
$this->firstCallInit();
}
$this->mOutput = new ParserOutput;
- $this->mOptions->registerWatcher( array( $this->mOutput, 'recordOption' ) );
+ if( $this->mOptions ) {
+ $this->mOptions->registerWatcher( array( $this->mOutput, 'recordOption' ) );
+ }
$this->mAutonumber = 0;
$this->mLastSection = '';
$this->mDTopen = false;
$this->mAutonumber = 0;
$this->mLastSection = '';
$this->mDTopen = false;