Bug 187 - Search terms not marked in news body
Summary: Search terms not marked in news body
Status: CONFIRMED
Alias: None
Product: Server
Classification: Other
Component: Web (show other bugs)
Version: cvs
Hardware: PC Linux
: Normal (P3) major (vote)
Target Milestone: Future
Deadline: 2019-12-28
Assignee: Administrator
QA Contact: Administrator
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-12-28 20:29 EET by Georgi D. Sotirov
Modified: 2019-12-28 20:32 EET (History)
0 users

See Also:
My Bug ID:
My description:
My date:
My choice:
My selection: ---


Attachments
Remove global variable and use upper level argument for the callback (1.22 KB, patch)
2019-12-28 20:31 EET, Georgi D. Sotirov
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Georgi D. Sotirov 2019-12-28 20:29:00 EET
Apparently, the change in commit https://github.com/gdsotirov/sotirov-bg.net/commit/d42e40cb4b62c618dc7768628a5f161bfaac0158 broke the search terms highlighting on the news page in the body of the news. It resulted in many PHP warnings in the HTTPD error_log like:

Variable passed to each() is not an array or object in /var/www/htdocs/news/nutil.php.inc on line 5

The problem is with the global $words variable, which was wrongly declared after a warning in Eclipse.
Comment 1 Georgi D. Sotirov 2019-12-28 20:31:05 EET
Created attachment 223 [details]
Remove global variable and use upper level argument for the callback


bug/show.html.tmpl processed on Apr 29, 2024 at 17:28:32.
(provided by the Example extension).