PHP 7 error when save a weblink

Fatal error: Cannot use Joomla\String\String as String because 'String' is a special class name
This commit is contained in:
Nicola Galgano 2015-12-06 08:34:41 +01:00
parent 52daec90df
commit c9ab22cdf0
1 changed files with 1 additions and 3 deletions

View File

@ -9,8 +9,6 @@
defined('_JEXEC') or die;
use Joomla\String\String;
/**
* Weblink Table class
*
@ -178,7 +176,7 @@ class WeblinksTableWeblink extends JTable
{
// Array of characters to remove
$bad_characters = array("\n", "\r", "\"", "<", ">");
$after_clean = String::str_ireplace($bad_characters, "", $this->metakey);
$after_clean = JString::str_ireplace($bad_characters, "", $this->metakey);
$keys = explode(',', $after_clean);
$clean_keys = array();