summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/ajax/share.php16
-rw-r--r--core/js/share.js2
-rw-r--r--lib/defaults.php9
3 files changed, 22 insertions, 5 deletions
diff --git a/core/ajax/share.php b/core/ajax/share.php
index 1e954ac4f9d..8f5432a0fcb 100644
--- a/core/ajax/share.php
+++ b/core/ajax/share.php
@@ -129,7 +129,13 @@ if (isset($_POST['action']) && isset($_POST['itemType']) && isset($_POST['itemSo
}
$url = \OCP\Util::linkToAbsolute('files', 'index.php', array("dir" => $foldername));
- $text = $defaults->getShareNotificationText(\OCP\User::getDisplayName(), $filename, $itemType, $url, $expiration);
+ $text = $defaults->getShareNotificationText(
+ \OCP\User::getDisplayName(),
+ $filename,
+ $itemType,
+ $url,
+ $expiration
+ );
try {
OCP\Util::sendMail(
@@ -153,7 +159,13 @@ if (isset($_POST['action']) && isset($_POST['itemType']) && isset($_POST['itemSo
if (empty($noMail)) {
OCP\JSON::success();
} else {
- OCP\JSON::error(array('data' => array('message' => $l->t("Couldn't send mail to following users: %s ", implode(', ', $noMail)))));
+ OCP\JSON::error(array(
+ 'data' => array(
+ 'message' => $l->t("Couldn't send mail to following users: %s ",
+ implode(', ', $noMail)
+ )
+ )
+ ));
}
break;
case 'informRecipientsDisabled':
diff --git a/core/js/share.js b/core/js/share.js
index e253f77ef27..763713e7cf2 100644
--- a/core/js/share.js
+++ b/core/js/share.js
@@ -493,7 +493,7 @@ $(document).ready(function() {
$('input:[type=checkbox]', this).hide();
$('label', this).hide();
}
- } else {
+ } else {
$('a.unshare', this).hide();
}
});
diff --git a/lib/defaults.php b/lib/defaults.php
index 0685fbb16c0..efb6c2c7b32 100644
--- a/lib/defaults.php
+++ b/lib/defaults.php
@@ -72,9 +72,14 @@ class OC_Defaults {
return $this->theme->getShareNotificationText($sender, $itemName, $itemType, $link, $expiration);
} else {
if ($expiration) {
- return $this->l->t("%s shared a %s called %s with you. The share will expire at %s. You can find the %s here: %s", array($sender, $itemType, $itemName, $expiration, $itemType, $link));
+ return $this->l->t("%s shared a %s called %s with you. " .
+ "The share will expire at %s. ".
+ "You can find the %s here: %s",
+ array($sender, $itemType, $itemName, $expiration, $itemType, $link));
} else {
- return $this->l->t("%s shared a %s called %s with you. You can find the %s here: %s", array($sender, $itemType, $itemName, $itemType, $link));
+ return $this->l->t("%s shared a %s called %s with you. ".
+ "You can find the %s here: %s",
+ array($sender, $itemType, $itemName, $itemType, $link));
}
}
}