From 75a49f90d1fcd289c8a5e539ccdba8ca768d8141 Mon Sep 17 00:00:00 2001 From: karakayasemi Date: Wed, 3 Apr 2019 18:51:03 +0300 Subject: [PATCH] move expiration date html elements under expiration date checkbox --- .../templates/panels/admin/filesharing.php | 39 +++++++++---------- tests/lib/Share20/ManagerTest.php | 2 +- 2 files changed, 20 insertions(+), 21 deletions(-) diff --git a/settings/templates/panels/admin/filesharing.php b/settings/templates/panels/admin/filesharing.php index 9397d416e950..d1cd600acb2c 100644 --- a/settings/templates/panels/admin/filesharing.php +++ b/settings/templates/panels/admin/filesharing.php @@ -56,19 +56,31 @@ print_unescaped('checked="checked"'); } ?> />
+ + t('Expire after ')); ?> + ' /> + t('days')); ?> + + + + + +
+
/>
- > - - -
-
+ + + +
+
t('Allow users to share file via social media'));?>

-

- t('Expire after ')); ?> - ' /> - t('days')); ?> - /> -
-

diff --git a/tests/lib/Share20/ManagerTest.php b/tests/lib/Share20/ManagerTest.php index 9db754217b09..2600bde59c9a 100644 --- a/tests/lib/Share20/ManagerTest.php +++ b/tests/lib/Share20/ManagerTest.php @@ -940,7 +940,7 @@ public function testvalidateExpirationDateEnforceButNotEnabledAndNotSet() { } /** - * @expectedException \InvalidArgumentException + * @expectedException \InvalidArgumentException */ public function testvalidateExpirationDateEnforceButNotSetNewShare() { $share = $this->manager->newShare();