diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-02-12 11:20:38 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-02-12 16:42:17 +0100 |
commit | fc7f279d90d26c5bac92d32919d2fb75e614c0a8 (patch) | |
tree | 0c53d861880a3fb9c6045376e63a52a942ee965e /lib/private/util.php | |
parent | 0b38a48bb4f1150710209577d15d8041574aa29a (diff) | |
download | nextcloud-server-fc7f279d90d26c5bac92d32919d2fb75e614c0a8.tar.gz nextcloud-server-fc7f279d90d26c5bac92d32919d2fb75e614c0a8.zip |
catch any whitespaces which might get written to the output buffer while loading a theme
Diffstat (limited to 'lib/private/util.php')
-rw-r--r-- | lib/private/util.php | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/private/util.php b/lib/private/util.php index d6c76e0960c..2be7e8eb293 100644 --- a/lib/private/util.php +++ b/lib/private/util.php @@ -504,11 +504,6 @@ class OC_Util { $webServerRestart = true; } - //common hint for all file permissions error messages - $permissionsHint = $l->t('Permissions can usually be fixed by ' - . '%sgiving the webserver write access to the root directory%s.', - array('<a href="' . \OC_Helper::linkToDocs('admin-dir_permissions') . '" target="_blank">', '</a>')); - // Check if config folder is writable. if (!is_writable(OC::$configDir) or !is_readable(OC::$configDir)) { $errors[] = array( @@ -549,6 +544,10 @@ class OC_Util { ); } } else if (!is_writable($CONFIG_DATADIRECTORY) or !is_readable($CONFIG_DATADIRECTORY)) { + //common hint for all file permissions error messages + $permissionsHint = $l->t('Permissions can usually be fixed by ' + . '%sgiving the webserver write access to the root directory%s.', + array('<a href="' . \OC_Helper::linkToDocs('admin-dir_permissions') . '" target="_blank">', '</a>')); $errors[] = array( 'error' => 'Data directory (' . $CONFIG_DATADIRECTORY . ') not writable by ownCloud', 'hint' => $permissionsHint |