[Pkg-owncloud-commits] [owncloud] 156/199: Fixed navigation order

David Prévot taffit at moszumanska.debian.org
Sun Jun 1 18:53:21 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository owncloud.

commit d21b8108c88b33dbef465c7afc07613ab6466751
Author: Vincent Petry <pvince81 at owncloud.com>
Date:   Tue May 20 11:06:09 2014 +0200

    Fixed navigation order
---
 apps/files/index.php                | 5 +++++
 apps/files_sharing/appinfo/app.php  | 4 ++--
 apps/files_trashbin/appinfo/app.php | 2 +-
 3 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/apps/files/index.php b/apps/files/index.php
index e24c535..95ae797 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 1756fc2..21b2646 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 b8900ee..383115b 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')
 )
 );

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list