diff --git a/conf/msg b/conf/msg new file mode 100644 index 0000000000000000000000000000000000000000..a5b98b2b022c4faa7c3b44a290cebdfd96e51b6a --- /dev/null +++ b/conf/msg @@ -0,0 +1,8 @@ +2 +The first line of this file contains a number, indicating +which notification messages should not be displayed. This +is the only information sent to dokuwiki.org when the +updatecheck option is enabled. You usually don't need to +change this number as it gets updated when you install the +new release - but to ignore a certain message set it's +number here. diff --git a/inc/infoutils.php b/inc/infoutils.php index fcaba23cf996497ae2acfea5029298766a1cb89b..c619da2ac55630777f742d0c76b9e66e27546ffa 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);