diff options
Diffstat (limited to 'apps/files_sharing')
-rw-r--r-- | apps/files_sharing/appinfo/update.php | 7 | ||||
-rw-r--r-- | apps/files_sharing/l10n/es_AR.php | 9 | ||||
-rw-r--r-- | apps/files_sharing/l10n/eu.php | 2 | ||||
-rw-r--r-- | apps/files_sharing/l10n/fr.php | 2 |
4 files changed, 20 insertions, 0 deletions
diff --git a/apps/files_sharing/appinfo/update.php b/apps/files_sharing/appinfo/update.php index 5ef7a8bbb9c..dc8c8dd73fc 100644 --- a/apps/files_sharing/appinfo/update.php +++ b/apps/files_sharing/appinfo/update.php @@ -5,6 +5,10 @@ if (version_compare($installedVersion, '0.3', '<')) { $query = OCP\DB::prepare('SELECT * FROM `*PREFIX*sharing`'); $result = $query->execute(); $groupShares = array(); + //we need to set up user backends, otherwise creating the shares will fail with "because user does not exist" + OC_User::useBackend(new OC_User_Database()); + OC_Group::useBackend(new OC_Group_Database()); + OC_App::loadApps(array('authentication')); while ($row = $result->fetchRow()) { $itemSource = OC_FileCache::getId($row['source'], ''); if ($itemSource != -1) { @@ -39,6 +43,8 @@ if (version_compare($installedVersion, '0.3', '<')) { $shareWith = $row['uid_shared_with']; } OC_User::setUserId($row['uid_owner']); + //we need to setup the filesystem for the user, otherwise OC_FileSystem::getRoot will fail and break + OC_Util::setupFS($row['uid_owner']); try { OCP\Share::shareItem($itemType, $itemSource, $shareType, $shareWith, $permissions); } @@ -46,6 +52,7 @@ if (version_compare($installedVersion, '0.3', '<')) { $update_error = true; echo 'Skipping sharing "'.$row['source'].'" to "'.$shareWith.'" (error is "'.$e->getMessage().'")<br/>'; } + OC_Util::tearDownFS(); } } if ($update_error) { diff --git a/apps/files_sharing/l10n/es_AR.php b/apps/files_sharing/l10n/es_AR.php new file mode 100644 index 00000000000..a2d6e232f20 --- /dev/null +++ b/apps/files_sharing/l10n/es_AR.php @@ -0,0 +1,9 @@ +<?php $TRANSLATIONS = array( +"Password" => "Contraseña", +"Submit" => "Enviar", +"%s shared the folder %s with you" => "%s compartió la carpeta %s con vos", +"%s shared the file %s with you" => "%s compartió el archivo %s con vos", +"Download" => "Descargar", +"No preview available for" => "La vista preliminar no está disponible para", +"web services under your control" => "servicios web controlados por vos" +); diff --git a/apps/files_sharing/l10n/eu.php b/apps/files_sharing/l10n/eu.php index 70ff2e8876c..ebef0f445ed 100644 --- a/apps/files_sharing/l10n/eu.php +++ b/apps/files_sharing/l10n/eu.php @@ -1,6 +1,8 @@ <?php $TRANSLATIONS = array( "Password" => "Pasahitza", "Submit" => "Bidali", +"%s shared the folder %s with you" => "%sk zurekin %s karpeta elkarbanatu du", +"%s shared the file %s with you" => "%sk zurekin %s fitxategia elkarbanatu du", "Download" => "Deskargatu", "No preview available for" => "Ez dago aurrebista eskuragarririk hauentzat ", "web services under your control" => "web zerbitzuak zure kontrolpean" diff --git a/apps/files_sharing/l10n/fr.php b/apps/files_sharing/l10n/fr.php index 54d9e9ec567..1038d819330 100644 --- a/apps/files_sharing/l10n/fr.php +++ b/apps/files_sharing/l10n/fr.php @@ -1,6 +1,8 @@ <?php $TRANSLATIONS = array( "Password" => "Mot de passe", "Submit" => "Envoyer", +"%s shared the folder %s with you" => "%s a partagé le répertoire %s avec vous", +"%s shared the file %s with you" => "%s a partagé le fichier %s avec vous", "Download" => "Télécharger", "No preview available for" => "Pas d'aperçu disponible pour", "web services under your control" => "services web sous votre contrôle" |