summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorGina Haeussge <gina@foosel.net>2010-06-26 18:25:41 +0200
committerGina Haeussge <gina@foosel.net>2010-06-26 18:25:41 +0200
commit3f803e5e8df5f91507a14467a07e89271f9e4e8e (patch)
tree78a24b742efbf4773e2efe416274af1045324561 /inc
parentb150cd2c5cb9ad4413773a774f6eaa17fbd3795e (diff)
downloadrpg-3f803e5e8df5f91507a14467a07e89271f9e4e8e.tar.gz
rpg-3f803e5e8df5f91507a14467a07e89271f9e4e8e.tar.bz2
FS#1878: Hide Dokuwiki version information from metadata and only show it to admins and manager in do=check. Also protected meta files README, VERSION and COPYING additionally to .ht*
Diffstat (limited to 'inc')
-rw-r--r--inc/infoutils.php4
-rw-r--r--inc/template.php2
2 files changed, 4 insertions, 2 deletions
diff --git a/inc/infoutils.php b/inc/infoutils.php
index 096662d24..87b29d7af 100644
--- a/inc/infoutils.php
+++ b/inc/infoutils.php
@@ -100,7 +100,9 @@ function check(){
global $conf;
global $INFO;
- msg('DokuWiki version: '.getVersion(),1);
+ if ($INFO['isadmin'] || $INFO['ismanager']){
+ msg('DokuWiki version: '.getVersion(),1);
+ }
if(version_compare(phpversion(),'5.1.2','<')){
msg('Your PHP version is too old ('.phpversion().' vs. 5.1.2+ needed)',-1);
diff --git a/inc/template.php b/inc/template.php
index 8847f788d..4d24c2191 100644
--- a/inc/template.php
+++ b/inc/template.php
@@ -255,7 +255,7 @@ function tpl_metaheaders($alt=true){
}
// the usual stuff
- $head['meta'][] = array( 'name'=>'generator', 'content'=>'DokuWiki '.getVersion() );
+ $head['meta'][] = array( 'name'=>'generator', 'content'=>'DokuWiki');
$head['link'][] = array( 'rel'=>'search', 'type'=>'application/opensearchdescription+xml',
'href'=>DOKU_BASE.'lib/exe/opensearch.php', 'title'=>$conf['title'] );
$head['link'][] = array( 'rel'=>'start', 'href'=>DOKU_BASE );