[geeklog-hg] geeklog: fixed E_ALL error (only variables can be passed by refe...
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Sat Jun 9 12:22:58 EDT 2012
changeset 8719:afdf178c6b69
url: http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/afdf178c6b69
user: Dirk Haun <dirk at haun-online.de>
date: Sat Jun 09 18:15:51 2012 +0200
description:
fixed E_ALL error (only variables can be passed by reference)
diffstat:
public_html/search.php | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
diffs (35 lines):
diff -r f7afc2013eaf -r afdf178c6b69 public_html/search.php
--- a/public_html/search.php Fri Jun 08 11:05:24 2012 -0400
+++ b/public_html/search.php Sat Jun 09 18:15:51 2012 +0200
@@ -2,13 +2,13 @@
/* Reminder: always indent with 4 spaces (no tabs). */
// +---------------------------------------------------------------------------+
-// | Geeklog 1.6 |
+// | Geeklog 2.0 |
// +---------------------------------------------------------------------------+
// | search.php |
// | |
// | Geeklog search tool. |
// +---------------------------------------------------------------------------+
-// | Copyright (C) 2000-2009 by the following authors: |
+// | Copyright (C) 2000-2012 by the following authors: |
// | |
// | Authors: Tony Bibbs - tony AT tonybibbs DOT com |
// | Mark Limburg - mlimburg AT users DOT sourceforge DOT net |
@@ -39,10 +39,12 @@
// Figure out topic to display
TOPIC_getTopic('search');
-if (isset ($_GET['mode']) && ($_GET['mode'] == 'search')) {
- $display = COM_createHTMLDocument($searchObj->doSearch(), array('pagetitle' => $LANG09[11]));
+if (isset($_GET['mode']) && ($_GET['mode'] == 'search')) {
+ $content = $searchObj->doSearch();
+ $display = COM_createHTMLDocument($content, array('pagetitle' => $LANG09[11]));
} else {
- $display = COM_createHTMLDocument($searchObj->showForm(), array('pagetitle' => $LANG09[1]));
+ $content = $searchObj->showForm();
+ $display = COM_createHTMLDocument($content, array('pagetitle' => $LANG09[1]));
}
COM_output($display);
More information about the geeklog-cvs
mailing list