Change-Id: Ie7af687e543756988618be21a464f43ad03052d5
if ( $rev_id ) {
$rev = Revision::newFromId( $rev_id );
if ( $rev ) {
if ( $rev_id ) {
$rev = Revision::newFromId( $rev_id );
if ( $rev ) {
- $title = $rev->getTitle();
$logEntry->setTarget( $rev->getTitle() );
}
} elseif ( $log_id ) {
$logEntry->setTarget( $rev->getTitle() );
}
} elseif ( $log_id ) {
* @param User $user Who to attribute the action to
* @param int $tagCount For deletion only, how many usages the tag had before
* it was deleted.
* @param User $user Who to attribute the action to
* @param int $tagCount For deletion only, how many usages the tag had before
* it was deleted.
+ * @return int ID of the inserted log entry
* @since 1.25
*/
protected static function logTagManagementAction( $action, $tag, $reason,
* @since 1.25
*/
protected static function logTagManagementAction( $action, $tag, $reason,