[ solved ] k2 joomla - fix Tags, when K2 remove spaces and Dashes

  • (2 votes)
  • Written by 
  • Monday, 11 July 2016 16:52

If you save K2 article and K2 remove from the Tags spases and dashes - we need fix this in function check (). Open administrator\components\com_k2\tables\k2tag.php. Pleace find line 30 and replase this code

// Oldest line 30
$this->name = JString::str_ireplace('-', '', $this->name);

Replase old line in this code:

// approve - and space
$this->name = JString::str_ireplace('-', '—', $this->name);
$this->name = JString::str_ireplace(' ', ' ', $this->name);
496 Read Last modified on Monday, 11 July 2016

Leave a comment

Make sure you enter all the required information, indicated by an asterisk (*). HTML code is not allowed.