diff options
author | mattab <matthieu.aubry@gmail.com> | 2014-05-21 03:24:42 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2014-05-21 03:24:42 +0400 |
commit | 2e0b98dc678db7241655b065234763f9e35fab21 (patch) | |
tree | aafba606bf1ea68cb9c0d5245093c79a54e9b15f | |
parent | 548c958b16fbb1acd2e08f306742efeed36016bf (diff) |
Fixes #4499 Adding upgrade file to re-create all htaccess files with the correct values.2.2.3-b7
-rw-r--r-- | core/Updates/2.2.3-b7.php | 32 | ||||
-rw-r--r-- | core/Version.php | 2 |
2 files changed, 33 insertions, 1 deletions
diff --git a/core/Updates/2.2.3-b7.php b/core/Updates/2.2.3-b7.php new file mode 100644 index 0000000000..6d9476bff7 --- /dev/null +++ b/core/Updates/2.2.3-b7.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(); + } +} diff --git a/core/Version.php b/core/Version.php index 326313145c..f510b5c327 100644 --- a/core/Version.php +++ b/core/Version.php @@ -21,5 +21,5 @@ final class Version * The current Piwik version. * @var string */ - const VERSION = '2.2.3-b6'; + const VERSION = '2.2.3-b7'; } |