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.6.2.php')
-rw-r--r--core/Updates/0.6.2.php47
1 files changed, 47 insertions, 0 deletions
diff --git a/core/Updates/0.6.2.php b/core/Updates/0.6.2.php
new file mode 100644
index 0000000000..5c564df099
--- /dev/null
+++ b/core/Updates/0.6.2.php
@@ -0,0 +1,47 @@
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ *
+ * @category Piwik
+ * @package Updates
+ */
+
+/**
+ * @package Updates
+ */
+class Piwik_Updates_0_6_2 extends Piwik_Updates
+{
+ static function update()
+ {
+ $obsoleteFiles = array(
+ PIWIK_INCLUDE_PATH . '/core/Db/Mysqli.php',
+ );
+ foreach($obsoleteFiles as $obsoleteFile)
+ {
+ if(file_exists($obsoleteFile))
+ {
+ @unlink($obsoleteFile);
+ }
+ }
+
+ $obsoleteDirectories = array(
+ PIWIK_INCLUDE_PATH . '/core/Db/Pdo',
+ );
+ foreach($obsoleteDirectories as $dir)
+ {
+ if(file_exists($dir))
+ {
+ Piwik::unlinkRecursive($dir, true);
+ }
+ }
+
+ // force regeneration of cache files
+ Piwik::setUserIsSuperUser();
+ $allSiteIds = Piwik_SitesManager_API::getInstance()->getAllSitesId();
+ Piwik_Common::regenerateCacheWebsiteAttributes($allSiteIds);
+ }
+}