r89596 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r89595‎ | r89596 | r89597 >
Date:19:35, 6 June 2011
Author:reedy
Status:ok
Tags:
Comment:
Fixup error messages
Modified paths:
  • /trunk/extensions/CodeReview/api/ApiQueryCodePaths.php (modified) (history)
  • /trunk/extensions/CodeReview/api/ApiQueryCodeTags.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CodeReview/api/ApiQueryCodeTags.php
@@ -71,7 +71,7 @@
7272
7373 public function getPossibleErrors() {
7474 return array_merge( parent::getPossibleErrors(), array(
75 - array( 'code' => 'permissiondenied', 'info' => 'You don\'t have permission to view code comments' ),
 75+ array( 'code' => 'permissiondenied', 'info' => 'You don\'t have permission to view code tags' ),
7676 array( 'code' => 'invalidrepo', 'info' => "Invalid repo ``repo''" ),
7777 ) );
7878 }
Index: trunk/extensions/CodeReview/api/ApiQueryCodePaths.php
@@ -28,7 +28,7 @@
2929 global $wgUser;
3030 // Before doing anything at all, let's check permissions
3131 if ( !$wgUser->isAllowed( 'codereview-use' ) ) {
32 - $this->dieUsage( 'You don\'t have permission to view code tags', 'permissiondenied' );
 32+ $this->dieUsage( 'You don\'t have permission to view code paths', 'permissiondenied' );
3333 }
3434 $params = $this->extractRequestParams();
3535
@@ -88,7 +88,7 @@
8989
9090 public function getPossibleErrors() {
9191 return array_merge( parent::getPossibleErrors(), array(
92 - array( 'code' => 'permissiondenied', 'info' => 'You don\'t have permission to view code comments' ),
 92+ array( 'code' => 'permissiondenied', 'info' => 'You don\'t have permission to view code paths' ),
9393 array( 'code' => 'invalidrepo', 'info' => "Invalid repo ``repo''" ),
9494 ) );
9595 }

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r89588* (bug 29287) Path searching input need a suggest list...reedy19:01, 6 June 2011

Status & tagging log