rework autocomplete: some polishing

This commit is contained in:
rabuzarus 2016-04-14 17:05:19 +02:00
commit ce1faf17d1
5 changed files with 12 additions and 8 deletions

View file

@ -122,7 +122,7 @@ class Smilies {
* @param string $s
* @param boolean $sample
*
* @return string
* @return string HML Output of the Smilie
*/
public static function replace($s, $sample = false) {
if(intval(get_config('system','no_smilies'))
@ -165,7 +165,9 @@ class Smilies {
* @brief expand <3333 to the correct number of hearts
*
* @param string $x
* @return string
* @return string HTML Output
*
* @todo: Rework because it doesn't work correctly
*/
private function preg_heart($x) {
if(strlen($x[1]) == 1)