diff options
author | robocoder <anthon.pang@gmail.com> | 2010-07-30 08:53:39 +0400 |
---|---|---|
committer | robocoder <anthon.pang@gmail.com> | 2010-07-30 08:53:39 +0400 |
commit | e2a5b4b5e1fda1c09cfffbf999dc1504c8b8c27b (patch) | |
tree | 6c2ef986ca3eb8c56007754d0a0a8e1d10a7b568 /core/Updater.php | |
parent | 4536608d2dd752d464e9bd3e1be0a694ba0642c5 (diff) |
quick fixes #1529 - recovers more gracefully if glob() is disabled; installer can be run, and it will provide a warning.
Piwik will continue to run albeit in a crippled state:
- can't change language via selection list
- can't list/activate/deactivate plugins
- can't run updates
git-svn-id: http://dev.piwik.org/svn/trunk@2814 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'core/Updater.php')
-rw-r--r-- | core/Updater.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/Updater.php b/core/Updater.php index 69756fa14a..6325cb53e8 100644 --- a/core/Updater.php +++ b/core/Updater.php @@ -194,8 +194,8 @@ class Piwik_Updater $pathToUpdates = sprintf($this->pathUpdateFilePlugins, $name) . '*.php'; } - $files = glob( $pathToUpdates ); - if($files === false) + $files = @glob( $pathToUpdates ); + if($files == false) { $files = array(); } |