From: Aaron Schulz Date: Thu, 5 Jun 2008 00:00:07 +0000 (+0000) Subject: Tweak error messages X-Git-Tag: 1.31.0-rc.0~47160 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=f030fc2995635e0f96e3bcb0ebfdf130a6399a73;p=lhc%2Fweb%2Fwiklou.git Tweak error messages --- diff --git a/includes/api/ApiQueryBacklinks.php b/includes/api/ApiQueryBacklinks.php index e62fb07389..cdc70ed8ca 100644 --- 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')); }