summaryrefslogtreecommitdiff
path: root/inc/infoutils.php
diff options
context:
space:
mode:
authorAnika Henke <anika@selfthinker.org>2011-09-10 20:11:29 +0100
committerAnika Henke <anika@selfthinker.org>2011-09-10 20:23:40 +0100
commit29d511bfa507384ae0872f75fb54acb44b1e915e (patch)
treebd9b3138f288fbc6786f3b28c7f3d438bf79c36f /inc/infoutils.php
parent28b19f13203b5263ad89854a9c1df221975e4c38 (diff)
parenta95a7bf3a77d3c38a54af67b2f7584c480381691 (diff)
downloadrpg-29d511bfa507384ae0872f75fb54acb44b1e915e.tar.gz
rpg-29d511bfa507384ae0872f75fb54acb44b1e915e.tar.bz2
Merge branch 'plugincontroller' of git://github.com/piyushmishra/dokuwiki into plugincontroller
This adds support for the config_cascade when enabling/disabling plugins, making farming easier. The changes have been implemented by Piyush Mishra and are a part of the new extension manager which will follow later. It's the result of a Google Summer of Code project, the official project page can be found at http://www.google-melange.com/gsoc/project/google/gsoc2011/piyushmishra/26001 Thanks to Piyush for the work and Google for sponsoring it! Conflicts: inc/lang/en/lang.php
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 786661d01..f1deec66b 100644
--- a/inc/infoutils.php
+++ b/inc/infoutils.php
@@ -66,8 +66,8 @@ function getVersionData(){
$chunk = fread($fh,2000);
fclose($fh);
$chunk = trim($chunk);
- $chunk = array_pop(explode("\n",$chunk)); //last log line
- $chunk = array_shift(explode("\t",$chunk)); //strip commit msg
+ $chunk = @array_pop(explode("\n",$chunk)); //last log line
+ $chunk = @array_shift(explode("\t",$chunk)); //strip commit msg
$chunk = explode(" ",$chunk);
array_pop($chunk); //strip timezone
$date = date('Y-m-d',array_pop($chunk));