/** * @param $row */ function setCurrent($row) { parent::setCurrent($row); if ($row !== false) { $caRow = isset($this->globalData[$row->user_name]) ? $this->globalData[$row->user_name] : false; $this->current->centralAuthObj = CentralAuthUser::newFromRow($caRow); } }
/** * @param $row */ function setCurrent($row) { parent::setCurrent($row); if ($row !== false) { if (isset($this->globalData[$row->user_name])) { $caRow = $this->globalData[$row->user_name]; // Like taken from GlobalRenameUserStatus::getNames $renameUser = array(); if ($caRow->ru_oldname) { $renameUser = array($caRow->ru_oldname, $caRow->ru_newname); } $this->current->centralAuthObj = CentralAuthUser::newFromRow($caRow, $renameUser); } else { $this->current->centralAuthObj = CentralAuthUser::newUnattached($row->user_name); } } }