]> source.dussan.org Git - nextcloud-server.git/commitdiff
change the error hint from suggesting to change the owner of a directory to changing...
authorFrank Karlitschek <karlitschek@kde.org>
Sat, 22 Oct 2011 17:39:05 +0000 (19:39 +0200)
committerFrank Karlitschek <karlitschek@kde.org>
Sat, 22 Oct 2011 17:39:05 +0000 (19:39 +0200)
lib/config.php
lib/util.php

index 3aa69327f56fcf6c713ff91278e9759a424087a6..2c82036257f95e4206c901e1d2f8e0ec27e7e07d 100644 (file)
@@ -175,7 +175,7 @@ class OC_Config{
                $result=@file_put_contents( OC::$SERVERROOT."/config/config.php", $content );
                if(!$result) {
                        $tmpl = new OC_Template( '', 'error', 'guest' );
-                       $tmpl->assign('errors',array(1=>array('error'=>"Can't write into config directory 'config'",'hint'=>"You can usually fix this by setting the owner of 'config' to the user that the web server uses (".OC_Util::checkWebserverUser().")")));
+                       $tmpl->assign('errors',array(1=>array('error'=>"Can't write into config directory 'config'",'hint'=>"You can usually fix this by giving the webserver use write access to the config directory in owncloud")));
                        $tmpl->printPage();
                        exit;
                }
index 90cc1f6123a70cec3d3bfcd5407df85ceeba0905..14313569a1d81544ed8a9b443e5db6271592a050 100644 (file)
@@ -24,7 +24,7 @@ class OC_Util {
                        $success=@mkdir($CONFIG_DATADIRECTORY_ROOT);
                         if(!$success) {
                                $tmpl = new OC_Template( '', 'error', 'guest' );
-                               $tmpl->assign('errors',array(1=>array('error'=>"Can't create data directory (".$CONFIG_DATADIRECTORY_ROOT.")",'hint'=>"You can usually fix this by setting the owner of '".OC::$SERVERROOT."' to the user that the web server uses (".OC_Util::checkWebserverUser().")")));
+                               $tmpl->assign('errors',array(1=>array('error'=>"Can't create data directory (".$CONFIG_DATADIRECTORY_ROOT.")",'hint'=>"You can usually fix this by giving the webserver write access to the ownCloud directory '".OC::$SERVERROOT."' ")));
                                $tmpl->printPage();
                                exit;
                        }
@@ -183,7 +183,7 @@ class OC_Util {
                 $serverUser=OC_Util::checkWebserverUser();
 
                //common hint for all file permissons error messages
-               $permissionsHint="Permissions can usually be fixed by setting the owner of the file or directory to the user the web server runs as ($serverUser)";
+               $permissionsHint="Permissions can usually be fixed by giving the webserver write access to the ownCloud directory";
 
                //check for correct file permissions
                if(!stristr(PHP_OS, 'WIN')){