summaryrefslogtreecommitdiff
path: root/inc/infoutils.php
diff options
context:
space:
mode:
authorDominik Eckelmann <deckelmann@gmail.com>2011-11-19 14:44:48 +0100
committerDominik Eckelmann <deckelmann@gmail.com>2011-11-19 14:44:48 +0100
commit402e0951b7e3ccf567702515bfe0b09cca8a5a93 (patch)
treeb5c4526d2d7ca1482fe8a67aa12125b065c478be /inc/infoutils.php
parent5446f3ffde77013d4eaea1fb166bcbd905a777a4 (diff)
parent1017f6f159386699a10d2529c50fb5e28b5c1889 (diff)
downloadrpg-402e0951b7e3ccf567702515bfe0b09cca8a5a93.tar.gz
rpg-402e0951b7e3ccf567702515bfe0b09cca8a5a93.tar.bz2
Merge branch 'master' of github.com:dom-mel/dokuwiki
Diffstat (limited to 'inc/infoutils.php')
-rw-r--r--inc/infoutils.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/inc/infoutils.php b/inc/infoutils.php
index f1deec66b..2b8486906 100644
--- a/inc/infoutils.php
+++ b/inc/infoutils.php
@@ -24,7 +24,7 @@ function checkUpdateMessages(){
$lm = @filemtime($cf);
// check if new messages needs to be fetched
- if($lm < time()-(60*60*24) || $lm < @filemtime(DOKU_INC.'doku.php')){
+ if($lm < time()-(60*60*24) || $lm < @filemtime(DOKU_INC.DOKU_SCRIPT)){
$http = new DokuHTTPClient();
$http->timeout = 8;
$data = $http->get(DOKU_MESSAGEURL.$updateVersion);
@@ -175,6 +175,12 @@ function check(){
msg('Lockdir is not writable',-1);
}
+ if(is_writable(DOKU_CONF)){
+ msg('conf directory is writable',1);
+ }else{
+ msg('conf directory is not writable',-1);
+ }
+
if($conf['authtype'] == 'plain'){
global $config_cascade;
if(is_writable($config_cascade['plainauth.users']['default'])){