aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-05-20 11:06:09 +0200
committerVincent Petry <pvince81@owncloud.com>2014-05-30 10:06:29 +0200
commitd21b8108c88b33dbef465c7afc07613ab6466751 (patch)
treeb6908f96d40d36231f1568cd68bec76f0281c12c /apps
parent89ff2857fc713d4ff5a635d87aef1a213d30d8e9 (diff)
downloadnextcloud-server-d21b8108c88b33dbef465c7afc07613ab6466751.tar.gz
nextcloud-server-d21b8108c88b33dbef465c7afc07613ab6466751.zip
Fixed navigation order
Diffstat (limited to 'apps')
-rw-r--r--apps/files/index.php5
-rw-r--r--apps/files_sharing/appinfo/app.php4
-rw-r--r--apps/files_trashbin/appinfo/app.php2
3 files changed, 8 insertions, 3 deletions
diff --git a/apps/files/index.php b/apps/files/index.php
index e24c535cb20..95ae7977ecc 100644
--- a/apps/files/index.php
+++ b/apps/files/index.php
@@ -74,7 +74,12 @@ if (OC_App::isEnabled('files_encryption')) {
$nav = new OCP\Template('files', 'appnavigation', '');
+function sortNavigationItems($item1, $item2) {
+ return $item1['order'] - $item2['order'];
+}
+
$navItems = \OCA\Files\App::getNavigationManager()->getAll();
+usort($navItems, 'sortNavigationItems');
$nav->assign('navigationItems', $navItems);
$contentItems = array();
diff --git a/apps/files_sharing/appinfo/app.php b/apps/files_sharing/appinfo/app.php
index 1756fc2f50e..21b2646c5ea 100644
--- a/apps/files_sharing/appinfo/app.php
+++ b/apps/files_sharing/appinfo/app.php
@@ -28,7 +28,7 @@ OC_FileProxy::register(new OCA\Files\Share\Proxy());
"id" => 'sharingin',
"appname" => 'files_sharing',
"script" => 'list.php',
- "order" => 3,
+ "order" => 10,
"name" => $l->t('Shared with you')
)
);
@@ -37,7 +37,7 @@ OC_FileProxy::register(new OCA\Files\Share\Proxy());
"id" => 'sharingout',
"appname" => 'files_sharing',
"script" => 'list.php',
- "order" => 4,
+ "order" => 15,
"name" => $l->t('Shared with others')
)
);
diff --git a/apps/files_trashbin/appinfo/app.php b/apps/files_trashbin/appinfo/app.php
index b8900ee0de3..383115b8e63 100644
--- a/apps/files_trashbin/appinfo/app.php
+++ b/apps/files_trashbin/appinfo/app.php
@@ -9,7 +9,7 @@ array(
"id" => 'trashbin',
"appname" => 'files_trashbin',
"script" => 'list.php',
- "order" => 1,
+ "order" => 50,
"name" => $l->t('Deleted files')
)
);