public function editArticles($row, $href, $label, $title, $icon) { if (!$this->User->hasAccess('article', 'modules')) { return ''; } return $row['type'] == 'regular' || $row['type'] == 'error_403' || $row['type'] == 'error_404' ? '<a href="' . $this->addToUrl($href . '&pn=' . $row['id']) . '" title="' . StringUtil::specialchars($title) . '">' . Image::getHtml($icon, $label) . '</a> ' : Image::getHtml(preg_replace('/\\.svg$/i', '_.svg', $icon)) . ' '; }