/**
* A repository for files accessible via InstantCommons.
+ * @ingroup FileRepo
*/
-
class ICRepo extends LocalRepo {
var $directory, $url, $hashLevels, $cache;
var $fileFactory = array( 'ICFile', 'newFromTitle' );
if( $descTitle->exists() ) {
# Create a null revision
$nullRevision = Revision::newNullRevision( $dbw, $descTitle->getArticleId(), $log->getRcComment(), false );
- $nullRevision->insertOn( $dbw, true );
+ $nullRevision->insertOn( $dbw );
+
+ wfRunHooks( 'NewRevisionFromEditComplete', array($article, $nullRevision, false) );
+
$article->updateRevisionOn( $dbw, $nullRevision );
# Invalidate the cache for the description page