diff options
Diffstat (limited to 'core/Updates/2.3.0-rc2.php')
-rw-r--r-- | core/Updates/2.3.0-rc2.php | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/core/Updates/2.3.0-rc2.php b/core/Updates/2.3.0-rc2.php new file mode 100644 index 0000000000..6d9476bff7 --- /dev/null +++ b/core/Updates/2.3.0-rc2.php @@ -0,0 +1,32 @@ +<?php +/** + * Piwik - Open source web analytics + * + * @link http://piwik.org + * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later + * + */ +namespace Piwik\Updates; + +use Faker\Provider\File; +use Piwik\Filesystem; +use Piwik\Plugins\Installation\ServerFilesGenerator; +use Piwik\Updates; + +/** + */ +class Updates_2_2_3_b7 extends Updates +{ + public static function update() + { + // Delete all existing htaccess files + $files = Filesystem::globr( PIWIK_INCLUDE_PATH, ".htaccess"); + + foreach($files as $file) { + @unlink($file); + } + + // Re-create them + ServerFilesGenerator::createHtAccessFiles(); + } +} |