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