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:
d786c5b
)
fixed handling of invalid title in {{double braces}}
author
Tim Starling
<tstarling@users.mediawiki.org>
Thu, 8 Apr 2004 13:47:11 +0000
(13:47 +0000)
committer
Tim Starling
<tstarling@users.mediawiki.org>
Thu, 8 Apr 2004 13:47:11 +0000
(13:47 +0000)
includes/Parser.php
patch
|
blob
|
history
diff --git
a/includes/Parser.php
b/includes/Parser.php
index
49bb50a
..
1185a73
100644
(file)
--- a/
includes/Parser.php
+++ b/
includes/Parser.php
@@
-1273,7
+1273,7
@@
class Parser
# Load from database
if ( !$found ) {
$title = Title::newFromText( $text, NS_TEMPLATE );
- if (
!is_null( $text
) && !$title->isExternal() ) {
+ if (
is_object( $title
) && !$title->isExternal() ) {
# Check for excessive inclusion
$dbk = $title->getPrefixedDBkey();
if ( !array_key_exists( $dbk, $this->mIncludeCount ) ) {