Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'core/Updates/0.4.4.php')
-rw-r--r--core/Updates/0.4.4.php12
1 files changed, 8 insertions, 4 deletions
diff --git a/core/Updates/0.4.4.php b/core/Updates/0.4.4.php
index e6c986a0b4..e29c07eed8 100644
--- a/core/Updates/0.4.4.php
+++ b/core/Updates/0.4.4.php
@@ -13,14 +13,18 @@
/**
* @package Updates
*/
-class Piwik_Updates_0_4_4 implements Piwik_iUpdate
+class Piwik_Updates_0_4_4 extends Piwik_Updates
{
static function update()
{
- $obsoleteFile = '/libs/open-flash-chart/php-ofc-library/ofc_upload_image.php';
- if(file_exists(PIWIK_DOCUMENT_ROOT . $obsoleteFile))
+ $obsoleteFile = PIWIK_DOCUMENT_ROOT . '/libs/open-flash-chart/php-ofc-library/ofc_upload_image.php';
+ if(file_exists($obsoleteFile))
{
- @unlink(PIWIK_DOCUMENT_ROOT . $obsoleteFile);
+ $rc = @unlink($obsoleteFile);
+ if(!$rc)
+ {
+ throw new Exception(Piwik_TranslateException('General_ExceptionUndeletableFile', array($obsoleteFile)));
+ }
}
}
}