- allows extensions to perform some action at time that a undeletion log entry is performed,
or skip the insertion of a log entry.
Change-Id: I5b0caaddfe5d7262612a60946d9f5c4af2679141
(i.e. it didn't exist before)
$comment: The comment associated with the undeletion.
+'ArticleUndeleteLogEntry': When a log entry is generated but not yet saved.
+$pageArchive: the PageArchive object
+&$logEntry: ManualLogEntry object
+$user: User who is performing the log action
+
'ArticleUpdateBeforeRedirect': After a page is updated (usually on save),
before the user is redirected back to the page
&$article: the article
$logEntry->setPerformer( $user );
$logEntry->setTarget( $this->title );
$logEntry->setComment( $reason );
+
+ wfRunHooks( 'ArticleUndeleteLogEntry', array( $this, &$logEntry, $user ) );
+
$logid = $logEntry->insert();
$logEntry->publish( $logid );