From 0a91ddc03c2b15ce51208e2c35df292c5276f50e Mon Sep 17 00:00:00 2001 From: Gerrit Uitslag Date: Fri, 21 Feb 2014 16:10:11 +0100 Subject: Update text above searchresults, when only read-acl FS#2697 --- inc/html.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'inc/html.php') diff --git a/inc/html.php b/inc/html.php index 0434f3b45..b88e58c3c 100644 --- a/inc/html.php +++ b/inc/html.php @@ -299,15 +299,17 @@ function html_hilight_callback($m) { * @author Andreas Gohr */ function html_search(){ - global $QUERY; + global $QUERY, $ID; global $lang; $intro = p_locale_xhtml('searchpage'); // allow use of placeholder in search intro + $pagecreateinfo = (auth_quickaclcheck($ID) > AUTH_READ) ? $lang['searchcreatepage'] : ''; $intro = str_replace( - array('@QUERY@','@SEARCH@'), - array(hsc(rawurlencode($QUERY)),hsc($QUERY)), - $intro); + array('@QUERY@', '@SEARCH@', '@CREATEPAGEINFO@'), + array(hsc(rawurlencode($QUERY)), hsc($QUERY), $pagecreateinfo), + $intro + ); echo $intro; flush(); -- cgit v1.2.3