Merge "Make api nearmatch search work same as 'go' feature"
[lhc/web/wiklou.git] / includes / api / ApiFormatPhp.php
index a6a6f32..d88dd40 100644 (file)
@@ -55,7 +55,7 @@ class ApiFormatPhp extends ApiFormatBase {
                                break;
 
                        default:
-                               self::dieUsage( __METHOD__ . ': Unknown value for \'formatversion\'' );
+                               $this->dieUsage( __METHOD__ . ': Unknown value for \'formatversion\'', 'unknownformatversion' );
                }
                $text = serialize( $this->getResult()->getResultData( null, $transforms ) );