Changeset 846

Show
Ignore:
Timestamp:
09/20/09 22:21:19 (12 months ago)
Author:
lordlamer
Message:

- fixed highlight problem (Closes: #148)

Location:
branches/knowledgeroot-0.9.9
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/knowledgeroot-0.9.9/doc/CHANGELOG

    r842 r846  
    451451- fixed js problem with ie (Closes: #145) 
    452452- fixed js problem with tree expand in ie (Closes: #141) 
     453 
     45420090920 - fhabermann 
     455- fixed highlight problem (Closes: #148) 
  • branches/knowledgeroot-0.9.9/include/class-knowledgeroot-content.php

    r831 r846  
    10821082                                                                $hvalue = preg_replace('/[^a-zA-Z0-9 \-_]/mu', '', $hvalue); 
    10831083                                                                //$row['content'] = preg_replace("/(.*)(".$hvalue.")(.*)/mUu","$1<span class=\"highlightword\">$2</span>$3",$row['content']); 
    1084                                                                 $row['content'] = $this->CLASS['highlight']->str_highlight($row['content'], $hvalue, $this->CLASS['highlight']->STR_HIGHLIGHT_SIMPLE, '<span class="highlightword">\1</span>'); 
     1084                                                                $row['content'] = $this->CLASS['highlight']->str_highlight($row['content'], $hvalue, $this->CLASS['highlight']->STR_HIGHLIGHT_STRIPLINKS, '<span class="highlightword">\1</span>'); 
    10851085                                                        } 
    10861086                                                }