]> source.dussan.org Git - nextcloud-server.git/commitdiff
use central method for checking webserver user
authorThomas Schmidt <tschmidt@suse.de>
Thu, 29 Sep 2011 13:54:41 +0000 (15:54 +0200)
committerThomas Schmidt <tschmidt@suse.de>
Thu, 29 Sep 2011 13:54:41 +0000 (15:54 +0200)
lib/config.php

index 67df5e94c6d289b3ef18777b073e98edcbde99f9..3aa69327f56fcf6c713ff91278e9759a424087a6 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 (".exec('whoami').")")));
+                       $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->printPage();
                        exit;
                }