Fix for bug 2648: call-time pass by reference has been deprecated, the constructor

of search_lexer now accepts the parser argument by reference all... one time it's called :)
This commit is contained in:
defacer
2005-02-28 00:30:39 +00:00
parent e0840dee09
commit f99fcffeb9
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -44,7 +44,7 @@ class search_token {
class search_lexer extends Lexer{
function search_lexer($parser){
function search_lexer(&$parser){
// Call parent constructor.
$this->Lexer($parser);
+1 -1
View File
@@ -1031,7 +1031,7 @@ function forum_search_posts($searchterms, $courseid, $page=0, $recordsperpage=50
// by the parser, but this should be examined carefully for security implications.
$searchstring = str_replace("\\\"","\"",$searchstring);
$parser = new search_parser();
$lexer = new search_lexer(&$parser);
$lexer = new search_lexer($parser);
if ($lexer->parse($searchstring)) {
$parsearray = $parser->get_parsed_array();