Fix for CLDR plural rule parser for old browsers without String.trim
[lhc/web/wiklou.git] / api.php
diff --git a/api.php b/api.php
index 5e23585..0d2312a 100644 (file)
--- a/api.php
+++ b/api.php
@@ -69,6 +69,9 @@ $wgTitle = Title::makeTitle( NS_MAIN, 'API' );
  */
 $processor = new ApiMain( RequestContext::getMain(), $wgEnableWriteAPI );
 
+// Last chance hook before executing the API
+wfRunHooks( 'ApiBeforeMain', array( &$processor ) );
+
 // Process data & print results
 $processor->execute();