Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrank Karlitschek <frank@owncloud.org>2012-05-01 22:03:41 +0400
committerFrank Karlitschek <frank@owncloud.org>2012-05-01 22:03:41 +0400
commit1a2bbd2ee49db8ec2c83b87718c943f47f91be28 (patch)
treec0f4cd83c6864728f4710566b929f48ef3168852 /apps/files_sharing
parent254b8b95065b4e2f27a8d2620f26bef65269957b (diff)
ported addSyript and other small stuff
Diffstat (limited to 'apps/files_sharing')
-rwxr-xr-x[-rw-r--r--]apps/files_sharing/appinfo/app.php4
-rwxr-xr-x[-rw-r--r--]apps/files_sharing/list.php2
-rwxr-xr-x[-rw-r--r--]apps/files_sharing/settings.php2
3 files changed, 4 insertions, 4 deletions
diff --git a/apps/files_sharing/appinfo/app.php b/apps/files_sharing/appinfo/app.php
index 7c547be3ca1..cf7c48d5fb9 100644..100755
--- a/apps/files_sharing/appinfo/app.php
+++ b/apps/files_sharing/appinfo/app.php
@@ -12,9 +12,9 @@ OC_Hook::connect('OC_User', 'post_addToGroup', 'OC_Share', 'addToGroupShare');
OC_Hook::connect('OC_User', 'post_removeFromGroup', 'OC_Share', 'removeFromGroupShare');
$dir = isset($_GET['dir']) ? $_GET['dir'] : '/';
if ($dir != '/Shared' || OC_Appconfig::getValue('files_sharing', 'resharing', 'yes') == 'yes') {
- OC_Util::addScript("files_sharing", "share");
+ OCP\Util::addscript("files_sharing", "share");
}
-OC_Util::addScript("3rdparty", "chosen/chosen.jquery.min");
+OCP\Util::addscript("3rdparty", "chosen/chosen.jquery.min");
OCP\Util::addStyle( 'files_sharing', 'sharing' );
OCP\Util::addStyle("3rdparty", "chosen/chosen");
diff --git a/apps/files_sharing/list.php b/apps/files_sharing/list.php
index a9006faf1a9..9a8a36219ae 100644..100755
--- a/apps/files_sharing/list.php
+++ b/apps/files_sharing/list.php
@@ -28,7 +28,7 @@ OC_Util::checkAppEnabled('files_sharing');
OC_App::setActiveNavigationEntry("files_sharing_list");
-OC_Util::addScript("files_sharing", "list");
+OCP\Util::addscript("files_sharing", "list");
$tmpl = new OC_Template("files_sharing", "list", "user");
$tmpl->assign("shared_items", OC_Share::getMySharedItems());
diff --git a/apps/files_sharing/settings.php b/apps/files_sharing/settings.php
index b30c4f45cde..da38b88d79e 100644..100755
--- a/apps/files_sharing/settings.php
+++ b/apps/files_sharing/settings.php
@@ -1,7 +1,7 @@
<?php
OC_Util::checkAdminUser();
-OC_Util::addScript('files_sharing', 'settings');
+OCP\Util::addscript('files_sharing', 'settings');
$tmpl = new OC_Template('files_sharing', 'settings');
$tmpl->assign('allowResharing', OC_Appconfig::getValue('files_sharing', 'resharing', 'yes'));
return $tmpl->fetchPage();