/**
  * @brief Hook on WikiFactory value remove and update wikis's visibility if the wgGroupPermissionsLocal is removed
  *
  * @param String $cv_name
  * @param Integer $city_id
  *
  * @return Boolean
  *
  * @author Evgeniy (aquilax)
  */
 public static function onWikiFactoryVariableRemoved($cv_name, $city_id)
 {
     global $wgExternalDatawareDB;
     if (empty($wgExternalDatawareDB)) {
         // Exit if there is no Dataware DB
         return true;
     }
     if ($cv_name === 'wgGroupPermissionsLocal') {
         UserProfilePageHelper::updateRestrictedWikis((int) $city_id, false);
     }
     return true;
 }