diff options
author | Gerrit Uitslag <klapinklapin@gmail.com> | 2014-02-21 16:10:11 +0100 |
---|---|---|
committer | Gerrit Uitslag <klapinklapin@gmail.com> | 2014-02-21 16:10:11 +0100 |
commit | 0a91ddc03c2b15ce51208e2c35df292c5276f50e (patch) | |
tree | 353d0fac84254740cb62b7ecba2ae9295dfbd991 /inc/html.php | |
parent | 6ffaeda954351208754898acc6e2ff228f3ae472 (diff) | |
download | rpg-0a91ddc03c2b15ce51208e2c35df292c5276f50e.tar.gz rpg-0a91ddc03c2b15ce51208e2c35df292c5276f50e.tar.bz2 |
Update text above searchresults, when only read-acl FS#2697
Diffstat (limited to 'inc/html.php')
-rw-r--r-- | inc/html.php | 10 |
1 files changed, 6 insertions, 4 deletions
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 <andi@splitbrain.org> */ 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(); |