diff options
Diffstat (limited to 'core/Updates/0.4.4.php')
-rw-r--r-- | core/Updates/0.4.4.php | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/core/Updates/0.4.4.php b/core/Updates/0.4.4.php index e29c07eed8..e6c986a0b4 100644 --- a/core/Updates/0.4.4.php +++ b/core/Updates/0.4.4.php @@ -13,18 +13,14 @@ /** * @package Updates */ -class Piwik_Updates_0_4_4 extends Piwik_Updates +class Piwik_Updates_0_4_4 implements Piwik_iUpdate { static function update() { - $obsoleteFile = PIWIK_DOCUMENT_ROOT . '/libs/open-flash-chart/php-ofc-library/ofc_upload_image.php'; - if(file_exists($obsoleteFile)) + $obsoleteFile = '/libs/open-flash-chart/php-ofc-library/ofc_upload_image.php'; + if(file_exists(PIWIK_DOCUMENT_ROOT . $obsoleteFile)) { - $rc = @unlink($obsoleteFile); - if(!$rc) - { - throw new Exception(Piwik_TranslateException('General_ExceptionUndeletableFile', array($obsoleteFile))); - } + @unlink(PIWIK_DOCUMENT_ROOT . $obsoleteFile); } } } |