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:
authormattab <matthieu.aubry@gmail.com>2013-09-14 06:37:21 +0400
committermattab <matthieu.aubry@gmail.com>2013-09-14 06:37:21 +0400
commit8d11a25fa7f41212584a58998c59884a4b9836d4 (patch)
tree39d6e3892346288619987f32a562f7e102c6f34c /core/Filechecks.php
parent4e910af4d770e19bcc7f953840662ee8a4c08b20 (diff)
Moving PHP/server settings getter/setter to SettingsServer class
Diffstat (limited to 'core/Filechecks.php')
-rw-r--r--core/Filechecks.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/Filechecks.php b/core/Filechecks.php
index a6fd37e582..ba38d2ef65 100644
--- a/core/Filechecks.php
+++ b/core/Filechecks.php
@@ -83,7 +83,7 @@ class Filechecks
}
// Also give the chown since the chmod is only 755
- if (!Common::isWindows()) {
+ if (!SettingsServer::isWindows()) {
$realpath = Filesystem::realpath(PIWIK_INCLUDE_PATH . '/');
$directoryList = "<code>chown -R www-data:www-data " . $realpath . "</code><br/>" . $directoryList;
}
@@ -182,7 +182,7 @@ class Filechecks
{
$message = "Please check that the web server has enough permission to write to these files/directories:<br />";
- if (Common::isWindows()) {
+ if (SettingsServer::isWindows()) {
$message .= "On Windows, check that the folder is not read only and is writable.
You can try to execute:<br />";
} else {
@@ -204,7 +204,7 @@ class Filechecks
*/
private static function getMakeWritableCommand($realpath)
{
- if (Common::isWindows()) {
+ if (SettingsServer::isWindows()) {
return "<code>cacls $realpath /t /g " . get_current_user() . ":f</code><br />";
}
return "<code>chmod -R 0755 $realpath</code><br />";