Merge "Fix usage of $wgDebugDumpSql"
[lhc/web/wiklou.git] / includes / api / ApiEditPage.php
index 4e1c871..73eebca 100644 (file)
@@ -381,9 +381,9 @@ class ApiEditPage extends ApiBase {
                                $apiResult->addValue( null, $this->getModuleName(), $r );
 
                                return;
-                       } else {
-                               $this->dieUsageMsg( 'hookaborted' );
                        }
+
+                       $this->dieUsageMsg( 'hookaborted' );
                }
 
                // Do the actual save