Skip to content
Extraits de code Groupes Projets
Valider 12c5154b rédigé par robocoder's avatar robocoder
Parcourir les fichiers

fixes #1507

git-svn-id: http://dev.piwik.org/svn/trunk@2660 59fd770c-687e-43c8-a1e3-f5a4ff64c105
parent 0ea8a444
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -149,6 +149,7 @@ class Piwik_AssetManager ...@@ -149,6 +149,7 @@ class Piwik_AssetManager
// Write the content in the new file // Write the content in the new file
fwrite($newFile, $mergedContent); fwrite($newFile, $mergedContent);
fclose($newFile); fclose($newFile);
@chmod($newFilePath, 0755);
return $hashcode; return $hashcode;
} }
...@@ -251,7 +252,7 @@ class Piwik_AssetManager ...@@ -251,7 +252,7 @@ class Piwik_AssetManager
self::removeMergedAsset("js"); self::removeMergedAsset("js");
// Tries to open the new file // Tries to open the new file
$newFilePath = self::getLocationFromHash($hashcode, "js"); $newFilePath = self::getLocationFromHash($hashcode, "js");
$newFile = fopen($newFilePath, "w"); $newFile = fopen($newFilePath, "w");
if (!$newFile) { if (!$newFile) {
...@@ -261,6 +262,7 @@ class Piwik_AssetManager ...@@ -261,6 +262,7 @@ class Piwik_AssetManager
// Write the content in the new file // Write the content in the new file
fwrite($newFile, $mergedContent); fwrite($newFile, $mergedContent);
fclose($newFile); fclose($newFile);
@chmod($newFilePath, 0755);
return $hashcode; return $hashcode;
} }
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter