From 5616690506759558a4fdb462286a398aabd0738c Mon Sep 17 00:00:00 2001 From: Bart Visscher Date: Thu, 14 Feb 2013 17:57:19 +0100 Subject: Style cleanup files_external --- apps/files_external/lib/config.php | 20 ++++++++++++++++---- apps/files_external/lib/sftp.php | 5 +++-- 2 files changed, 19 insertions(+), 6 deletions(-) diff --git a/apps/files_external/lib/config.php b/apps/files_external/lib/config.php index 44e668a09c0..fe9d62ab47f 100755 --- a/apps/files_external/lib/config.php +++ b/apps/files_external/lib/config.php @@ -310,7 +310,9 @@ class OC_Mount_Config { foreach ($data[self::MOUNT_TYPE_GROUP] as $group => $mounts) { $content .= "\t\t'".$group."' => array (\n"; foreach ($mounts as $mountPoint => $mount) { - $content .= "\t\t\t'".addcslashes($mountPoint, "'")."' => ".str_replace("\n", '', var_export($mount, true)).", \n"; + $content .= "\t\t\t'".addcslashes($mountPoint, "'") + ."' => " + .str_replace("\n", '', var_export($mount, true)).", \n"; } $content .= "\t\t),\n"; @@ -322,7 +324,9 @@ class OC_Mount_Config { foreach ($data[self::MOUNT_TYPE_USER] as $user => $mounts) { $content .= "\t\t'".$user."' => array (\n"; foreach ($mounts as $mountPoint => $mount) { - $content .= "\t\t\t'".addcslashes($mountPoint, "'")."' => ".str_replace("\n", '', var_export($mount, true)).",\n"; + $content .= "\t\t\t'".addcslashes($mountPoint, "'") + ."' => " + .str_replace("\n", '', var_export($mount, true)).",\n"; } $content .= "\t\t),\n"; } @@ -410,8 +414,16 @@ class OC_Mount_Config { public static function checkDependencies() { $l= new OC_L10N('files_external'); $txt=''; - if(!OC_Mount_Config::checksmbclient()) $txt.=$l->t('Warning: "smbclient" is not installed. Mounting of CIFS/SMB shares is not possible. Please ask your system administrator to install it.').'
'; - if(!OC_Mount_Config::checkphpftp()) $txt.=$l->t('Warning: The FTP support in PHP is not enabled or installed. Mounting of FTP shares is not possible. Please ask your system administrator to install it.').'
'; + if(!OC_Mount_Config::checksmbclient()) { + $txt.=$l->t('Warning: "smbclient" is not installed.' + .' Mounting of CIFS/SMB shares is not possible.' + .' Please ask your system administrator to install it.').'
'; + } + if(!OC_Mount_Config::checkphpftp()) { + $txt.=$l->t('Warning: The FTP support in PHP is not enabled or installed.' + .' Mounting of FTP shares is not possible.' + .' Please ask your system administrator to install it.').'
'; + } return($txt); } diff --git a/apps/files_external/lib/sftp.php b/apps/files_external/lib/sftp.php index 551a5a64ef2..3527f50ec98 100644 --- a/apps/files_external/lib/sftp.php +++ b/apps/files_external/lib/sftp.php @@ -7,8 +7,9 @@ */ namespace OC\Files\Storage; -set_include_path(get_include_path() . PATH_SEPARATOR . \OC_App::getAppPath('files_external') . '/3rdparty/phpseclib/phpseclib'); -require('Net/SFTP.php'); +set_include_path(get_include_path() . PATH_SEPARATOR . + \OC_App::getAppPath('files_external') . '/3rdparty/phpseclib/phpseclib'); +require 'Net/SFTP.php'; class SFTP extends \OC\Files\Storage\Common { private $host; -- cgit v1.2.3 From 6c197227d06d03403f335dbc23463ebf4b5f98a6 Mon Sep 17 00:00:00 2001 From: Bart Visscher Date: Fri, 15 Feb 2013 15:54:51 +0100 Subject: Join split translated strings --- apps/files_external/lib/config.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/apps/files_external/lib/config.php b/apps/files_external/lib/config.php index fe9d62ab47f..a3d1da68845 100755 --- a/apps/files_external/lib/config.php +++ b/apps/files_external/lib/config.php @@ -415,14 +415,10 @@ class OC_Mount_Config { $l= new OC_L10N('files_external'); $txt=''; if(!OC_Mount_Config::checksmbclient()) { - $txt.=$l->t('Warning: "smbclient" is not installed.' - .' Mounting of CIFS/SMB shares is not possible.' - .' Please ask your system administrator to install it.').'
'; + $txt.=$l->t('Warning: "smbclient" is not installed. Mounting of CIFS/SMB shares is not possible. Please ask your system administrator to install it.').'
'; } if(!OC_Mount_Config::checkphpftp()) { - $txt.=$l->t('Warning: The FTP support in PHP is not enabled or installed.' - .' Mounting of FTP shares is not possible.' - .' Please ask your system administrator to install it.').'
'; + $txt.=$l->t('Warning: The FTP support in PHP is not enabled or installed. Mounting of FTP shares is not possible. Please ask your system administrator to install it.').'
'; } return($txt); -- cgit v1.2.3