From f030fc2995635e0f96e3bcb0ebfdf130a6399a73 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Thu, 5 Jun 2008 00:00:07 +0000 Subject: [PATCH] Tweak error messages --- includes/api/ApiQueryBacklinks.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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')); } -- 2.20.1