diff --git a/administrator/components/com_admin/script.php b/administrator/components/com_admin/script.php index c94153f05b8bc..86e5a63a24fa1 100644 --- a/administrator/components/com_admin/script.php +++ b/administrator/components/com_admin/script.php @@ -1024,6 +1024,7 @@ public function deleteUnexistingFiles() '/libraries/joomla/registry/format/xml.php', // Joomla! 3.4 '/administrator/manifests/libraries/phpmailer.xml', + '/components/com_contact/helpers/icon.php', '/language/en-GB/en-GB.lib_phpmailer.sys.ini', '/libraries/compat/jsonserializable.php', '/libraries/compat/password/lib/index.html', diff --git a/components/com_contact/helpers/icon.php b/components/com_contact/helpers/icon.php deleted file mode 100644 index 8be3e25f8ee10..0000000000000 --- a/components/com_contact/helpers/icon.php +++ /dev/null @@ -1,87 +0,0 @@ -toString(array('scheme', 'host', 'port')); - $link = $base . JRoute::_(ContentHelperRoute::getArticleRoute($article->slug, $article->catid), false); - $url = 'index.php?option=com_mailto&tmpl=component&link=' . MailToHelper::addLink($link); - - $status = 'width=400,height=350,menubar=yes,resizable=yes'; - - if ($params->get('show_icons')) - { - $text = JHtml::_('image', 'system/emailButton.png', JText::_('JGLOBAL_EMAIL'), null, true); - } - else - { - $text = ' ' . JText::_('JGLOBAL_EMAIL'); - } - - $attribs['title'] = JText::_('JGLOBAL_EMAIL'); - $attribs['onclick'] = "window.open(this.href,'win2','" . $status . "'); return false;"; - - $output = JHtml::_('link', JRoute::_($url), $text, $attribs); - - return $output; - } - - public static function print_popup($article, $params, $attribs = array()) - { - $url = ContentHelperRoute::getContactRoute($contact->slug, $contact->catid); - $url .= '&tmpl=component&print=1&layout=default&page=' . @ $request->limitstart; - - $status = 'status=no,toolbar=no,scrollbars=yes,titlebar=no,menubar=no,resizable=yes,width=640,height=480,directories=no,location=no'; - - // Checks template image directory for image, if non found default are loaded - if ($params->get('show_icons')) - { - $text = JHtml::_('image', 'system/printButton.png', JText::_('JGLOBAL_PRINT'), null, true); - } - else - { - $text = JText::_('JGLOBAL_ICON_SEP') . ' ' . JText::_('JGLOBAL_PRINT') . ' ' . JText::_('JGLOBAL_ICON_SEP'); - } - - $attribs['title'] = JText::_('JGLOBAL_PRINT'); - $attribs['onclick'] = "window.open(this.href,'win2','" . $status . "'); return false;"; - $attribs['rel'] = 'nofollow'; - - return JHtml::_('link', JRoute::_($url), $text, $attribs); - } - - public static function print_screen($contact, $params, $attribs = array()) - { - // Checks template image directory for image, if non found default are loaded - if ($params->get('show_icons')) - { - $text = JHtml::_('image', 'system/printButton.png', JText::_('JGLOBAL_PRINT'), null, true); - } - else - { - $text = JText::_('JGLOBAL_ICON_SEP') .' ' . JText::_('JGLOBAL_PRINT') . ' ' . JText::_('JGLOBAL_ICON_SEP'); - } - - return '' . $text . ''; - } -}