Avoid usage of deprecated setTags() method, use addTags() instead
authorDerick Alangi <alangiderick@gmail.com>
Sun, 7 Jul 2019 22:07:56 +0000 (23:07 +0100)
committerKrinkle <krinklemail@gmail.com>
Sun, 1 Sep 2019 14:54:03 +0000 (14:54 +0000)
commit89cd937798b52e75834a12a66d9a728fcce4f06f
treeb461dabd226e1a6e71c9beaaced6760f27029f16
parent2d911d1f8c2accd3978cc20017b8a2c8ad75183d
Avoid usage of deprecated setTags() method, use addTags() instead

$tags can be `null` as seen in most cases and this causes failures,
so, the safer path is to make sure if $tags is a null, do nothing.

Change-Id: I5b7e39adba5d08fdcd42c437a72a391be98c8695
14 files changed:
includes/FileDeleteForm.php
includes/MovePage.php
includes/changetags/ChangeTags.php
includes/filerepo/file/LocalFile.php
includes/logging/ManualLogEntry.php
includes/logging/PatrolLog.php
includes/page/PageArchive.php
includes/page/WikiPage.php
includes/revisiondelete/RevDelList.php
includes/specials/SpecialBlock.php
includes/specials/SpecialPageLanguage.php
includes/specials/SpecialUnblock.php
includes/specials/SpecialUserrights.php
includes/specials/helpers/ImportReporter.php