Skip to content

Commit

Permalink
Print the id in the "page does not exist" message
Browse files Browse the repository at this point in the history
  • Loading branch information
michitux committed Dec 30, 2012
1 parent 947ab47 commit 45dd5ba
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function getMenuText() {
global $INFO;

if( !$INFO['exists'] )
return $this->getLang('menu').' ('.$this->getLang('pm_notexist').')';
return $this->getLang('menu').' ('.sprintf($this->getLang('pm_notexist'), $INFO['id']).')';
elseif( !$INFO['writable'] )
return $this->getLang('menu').' ('.$this->getLang('pm_notwrite').')';
else
Expand Down
2 changes: 1 addition & 1 deletion helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public function move_page(&$opts, $checkonly = false) {

// Check we have rights to move this document
if ( !page_exists($ID)) {
msg($this->getLang('pm_notexist'), -1);
msg(sprintf($this->getLang('pm_notexist'), $ID), -1);
return false;
}
if ( auth_quickaclcheck($ID) < AUTH_EDIT ) {
Expand Down
2 changes: 1 addition & 1 deletion lang/en/lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
$lang['menu'] = 'Page/Namespace Move/Rename...';
$lang['desc'] = 'Page/Namespace Move/Rename Plugin';

$lang['pm_notexist'] = 'This page does not exist';
$lang['pm_notexist'] = 'The page %s does not exist';
$lang['pm_notwrite'] = 'You do not have sufficient permissions to modify this page';
$lang['pm_badns'] = 'Invalid characters in namespace.';
$lang['pm_badname'] = 'Invalid characters in pagename.';
Expand Down

0 comments on commit 45dd5ba

Please sign in to comment.