summaryrefslogtreecommitdiff
path: root/inc/infoutils.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2006-09-17 16:50:25 +0200
committerAndreas Gohr <andi@splitbrain.org>2006-09-17 16:50:25 +0200
commit3d7760aa04b1d78e515c25d92e8849be398747ac (patch)
tree4aa82da93c20cb125f47045ad29895fa40cc0eee /inc/infoutils.php
parent847c2f3b03bb06b21fc9dfe6181d298ebe029e18 (diff)
downloadrpg-3d7760aa04b1d78e515c25d92e8849be398747ac.tar.gz
rpg-3d7760aa04b1d78e515c25d92e8849be398747ac.tar.bz2
update for updatecheck function
Messages are now displayed to all users if ACL is not enabled. The update-URL changed to http://update.dokuwiki.org/check/ darcs-hash:20060917145025-7ad00-1d64b90e51c1a49567a28b132caf79ae0f124c8e.gz
Diffstat (limited to 'inc/infoutils.php')
-rw-r--r--inc/infoutils.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/infoutils.php b/inc/infoutils.php
index fcaba23cf..c619da2ac 100644
--- a/inc/infoutils.php
+++ b/inc/infoutils.php
@@ -6,7 +6,7 @@
* @author Andreas Gohr <andi@splitbrain.org>
*/
if(!defined('DOKU_INC')) define('DOKU_INC',realpath(dirname(__FILE__).'/../').'/');
-if(!defined('DOKU_MESSAGEURL')) define('DOKU_MESSAGEURL','http://www.splitbrain.org/lib/exe/msg.php?msg=');
+if(!defined('DOKU_MESSAGEURL')) define('DOKU_MESSAGEURL','http://update.dokuwiki.org/check/');
require_once(DOKU_INC.'inc/HTTPClient.php');
/**
@@ -18,7 +18,7 @@ function checkUpdateMessages(){
global $conf;
global $INFO;
if(!$conf['updatecheck']) return;
- if($INFO['perm'] < AUTH_ADMIN) return;
+ if($conf['useacl'] && $INFO['perm'] < AUTH_ADMIN) return;
$cf = $conf['cachedir'].'/messages.txt';
$lm = @filemtime($cf);