From e2a5b4b5e1fda1c09cfffbf999dc1504c8b8c27b Mon Sep 17 00:00:00 2001 From: robocoder Date: Fri, 30 Jul 2010 04:53:39 +0000 Subject: 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 --- core/Updater.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/Updater.php') 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(); } -- cgit v1.2.3