Commit c4fa1760 authored by Ganesharatnam's avatar Ganesharatnam
Browse files

clean script

parent ac707d00
......@@ -446,7 +446,6 @@ function _handlingKeywordCaseSensitivityORS($word, $str) {
/**
* Apply the style for search word
*/
//function _styleWordORS($word) {
function _styleWordORS($word, $data) {
$word_style = "<span class='highlight-search-word'>" . $word . "</span>";
$regex = '\'(?!((<.*?)|(<a.*?)))(\b' . $word . '\b)(?!(([^<>]*?)>)|([^>]*?</a>))\'s';
......@@ -498,7 +497,6 @@ function _viewSearchResultsORS($no_duplicates, $word, $pagenum, $offset) {
/**
* Formatting the search results to display
*/
//function _processingSearchResultsORS($status, $desc, $link_name, $link_url, $word) {
function _processingSearchResultsORS($status, $desc, $link_name, $link_url, $word, $restricted) {
$content = "";
$link_url = _filterRestrictedResourceORS($restricted, $link_url);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment