API: Go back to using the good old str_replace() hacks rather than Title methods...
[lhc/web/wiklou.git] / includes / api / ApiMove.php
index 3d22cfc..a3801bf 100644 (file)
@@ -85,10 +85,7 @@ class ApiMove extends ApiBase {
                if($retval !== true)
                {
                        # FIXME: Title::moveTo() sometimes returns a string
-                       if(is_array($retval))
-                               $this->dieUsageMsg(reset($retval));
-                       else
-                               $this->dieUsageMsg(array('unknownerror', $error));
+                       $this->dieUsageMsg(reset($retval));
                }
 
                $r = array('from' => $fromTitle->getPrefixedText(), 'to' => $toTitle->getPrefixedText(), 'reason' => $params['reason']);