summaryrefslogtreecommitdiff
path: root/inc/html.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2014-09-29 18:27:54 +0200
committerAndreas Gohr <andi@splitbrain.org>2014-09-29 18:27:54 +0200
commit2f981761b3f5b7c8dcc53b8026d9fd3c499a7e1e (patch)
tree45052c76988a152bea656d2a37ad23ea09bbf126 /inc/html.php
parenta8a18248934225d10e98805150c56083a850877f (diff)
parentc50a128d960dda240979c770cc9d8b5c36b1e642 (diff)
downloadrpg-2f981761b3f5b7c8dcc53b8026d9fd3c499a7e1e.tar.gz
rpg-2f981761b3f5b7c8dcc53b8026d9fd3c499a7e1e.tar.bz2
Merge pull request #563 from splitbrain/FS#2697searchpagereadonly
Update text above searchresults, when only read-acl FS#2697
Diffstat (limited to 'inc/html.php')
-rw-r--r--inc/html.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/inc/html.php b/inc/html.php
index bda6fb398..a65fdfc31 100644
--- a/inc/html.php
+++ b/inc/html.php
@@ -314,15 +314,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_CREATE) ? $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();