mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 13:47:31 +02:00
name2id exclude ':'. Linkwords fix for spaces.
This commit is contained in:
@@ -2797,7 +2797,7 @@ class e_form
|
||||
function name2id($name)
|
||||
{
|
||||
$name = strtolower($name);
|
||||
return rtrim(str_replace(array('[]', '[', ']', '_', '/', ' ','.', '(', ')', '::'), array('-', '-', '', '-', '-', '-', '-','','','-'), $name), '-');
|
||||
return rtrim(str_replace(array('[]', '[', ']', '_', '/', ' ','.', '(', ')', '::', ':'), array('-', '-', '', '-', '-', '-', '-','','','-',''), $name), '-');
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -298,7 +298,7 @@ class e_tohtml_linkwords
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
if (!count($lwClass))
|
||||
{
|
||||
// return $this->linksproc($sl,$first+1,$limit); // Nothing to do - move on to next word (shouldn't really get here)
|
||||
@@ -309,7 +309,7 @@ class e_tohtml_linkwords
|
||||
}
|
||||
|
||||
// This splits the text into blocks, some of which will precisely contain a linkword
|
||||
$split_line = preg_split('#\b('.$lw.')(?:\s|\b)#i'.$this->utfMode, $text, -1, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE ); // *utf (selected)
|
||||
$split_line = preg_split('#\b('.$lw.')(\s|\b)#i'.$this->utfMode, $text, -1, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE ); // *utf (selected)
|
||||
// $class = "".implode(' ',$lwClass)."' ";
|
||||
$class = implode(' ',$lwClass);
|
||||
|
||||
|
Reference in New Issue
Block a user