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:
3857496
)
Tweak error messages
author
Aaron Schulz
<aaron@users.mediawiki.org>
Thu, 5 Jun 2008 00:00:07 +0000
(
00:00
+0000)
committer
Aaron Schulz
<aaron@users.mediawiki.org>
Thu, 5 Jun 2008 00:00:07 +0000
(
00:00
+0000)
includes/api/ApiQueryBacklinks.php
patch
|
blob
|
history
diff --git
a/includes/api/ApiQueryBacklinks.php
b/includes/api/ApiQueryBacklinks.php
index
e62fb07
..
cdc70ed
100644
(file)
--- a/
includes/api/ApiQueryBacklinks.php
+++ b/
includes/api/ApiQueryBacklinks.php
@@
-263,9
+263,13
@@
class ApiQueryBacklinks extends ApiQueryGeneratorBase {
if (!is_null($this->params['continue']))
$this->parseContinueParam();
else {
- $title = Title::newFromText( $this->params['title'] );
- if ( $title ) {
- $this->rootTitle = $title;
+ if ( $this->params['title'] !== "" ) {
+ $title = Title::newFromText( $this->params['title'] );
+ if ( !$title ) {
+ $this->dieUsage("Invalid title param");
+ } else {
+ $this->rootTitle = $title;
+ }
} else {
$this->dieUsageMsg(array('missingparam', 'title'));
}