Bug 187

Summary: Search terms not marked in news body
Product: [Other] Server Reporter: Georgi D. Sotirov <gdsotirov>
Component: WebAssignee: Administrator <root>
Status: CONFIRMED --- QA Contact: Administrator <root>
Severity: major    
Priority: Normal (P3)    
Version: cvs   
Target Milestone: Future   
Hardware: PC   
OS: Linux   
Whiteboard:
My Bug ID: My description:
My date: My choice:
My selection: ---
Deadline: 2019-12-28   
Attachments:
Description Flags
Remove global variable and use upper level argument for the callback none

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-multiple.html.tmpl processed on May 16, 2024 at 09:54:46.
(provided by the Example extension).