r25500 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r25499‎ | r25500 | r25501 >
Date:18:40, 4 September 2007
Author:catrope
Status:old
Tags:
Comment:
apiedit: Undelete fails if page doesn't exist. Right...
Modified paths:
  • /branches/apiedit/phase3/includes/api/ApiUndelete.php (modified) (history)

Diff [purge]

Index: branches/apiedit/phase3/includes/api/ApiUndelete.php
@@ -58,8 +58,6 @@
5959 $titleObj = Title::newFromText($params['title']);
6060 if(!$titleObj)
6161 $this->dieUsage("bad title {$params['title']}", 'invalidtitle');
62 - if(!$titleObj->exists())
63 - $this->dieUsage("{$params['title']} doesn't exist", 'missingtitle');
6462 $pa = new PageArchive($titleObj);
6563 $retval = $pa->undelete((isset($params['timestamps']) ? $params['timestamps'] : array()), $params['reason']);
6664 if(!is_array($retval))

Status & tagging log