dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge "Fixed fatal when using fake load balancers."
[lhc/web/wiklou.git]
/
includes
/
api
/
ApiExpandTemplates.php
diff --git
a/includes/api/ApiExpandTemplates.php
b/includes/api/ApiExpandTemplates.php
index
826171b
..
f5898fb
100644
(file)
--- a/
includes/api/ApiExpandTemplates.php
+++ b/
includes/api/ApiExpandTemplates.php
@@
-42,7
+42,7
@@
class ApiExpandTemplates extends ApiBase {
// Create title for parser
$title_obj = Title::newFromText( $params['title'] );
- if ( !$title_obj ) {
+ if ( !$title_obj
|| $title_obj->isExternal()
) {
$this->dieUsageMsg( array( 'invalidtitle', $params['title'] ) );
}