X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiMain.php;h=7bbce976aa929ac5b7e334e2e62b98d757202533;hb=203f7aba8c4d3279cd9de7cb479f08b80fb1800a;hp=a9fe25807b98bbf9440b5543bcf14d2581298db7;hpb=f9fbcfd93905d4a9909bead84d3cf4364f4e5254;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiMain.php b/includes/api/ApiMain.php index a9fe25807b..7bbce976aa 100644 --- a/includes/api/ApiMain.php +++ b/includes/api/ApiMain.php @@ -281,7 +281,10 @@ class ApiMain extends ApiBase { } $this->mResult->setErrorFormatter( $this->getErrorFormatter() ); - $this->mModuleMgr = new ApiModuleManager( $this ); + $this->mModuleMgr = new ApiModuleManager( + $this, + MediaWikiServices::getInstance()->getObjectFactory() + ); $this->mModuleMgr->addModules( self::$Modules, 'action' ); $this->mModuleMgr->addModules( $config->get( 'APIModules' ), 'action' ); $this->mModuleMgr->addModules( self::$Formats, 'format' ); @@ -293,7 +296,6 @@ class ApiMain extends ApiBase { $this->mEnableWrite = $enableWrite; $this->mCdnMaxAge = -1; // flag for executeActionWithErrorHandling() - $this->mCommit = false; } /**