Merge "Enable new module versioning for VisualEditorDataModule"

This commit is contained in:
jenkins-bot 2015-11-10 20:06:12 +00:00 committed by Gerrit Code Review
commit db6452ad76

View file

@ -135,25 +135,21 @@ class VisualEditorDataModule extends ResourceLoaderModule {
return $citationTools;
}
public function getDependencies( ResourceLoaderContext $context = null ) {
return array(
'ext.visualEditor.base',
'ext.visualEditor.mediawiki',
);
}
public function getDefinitionSummary( ResourceLoaderContext $context ) {
$summary = parent::getDefinitionSummary( $context );
$summary[] = array(
'script' => $this->getScript( $context ),
);
return $summary;
}
protected function getGitHeadHash() {
if ( $this->gitHeadHash === null ) {
$this->gitHeadHash = $this->gitInfo->getHeadSHA1();
}
return $this->gitHeadHash;
}
public function enableModuleContentVersion() {
return true;
}
public function getDependencies( ResourceLoaderContext $context = null ) {
return array(
'ext.visualEditor.base',
'ext.visualEditor.mediawiki',
);
}
}