Hi,
I am sending a patch that adds the root element to the breadcrumb line.
Instead of
a > b > c
with the patch is looks like
/ > a > b > c
For me that would look more natural, I ask you to consider.
I apologise to sending a patch to ML rather doing it through reviewboard, I
havent worked through the workflow documentation yet.
regards,
Klaas
diff --git a/apps/files_publiclink/get.php b/apps/files_publiclink/get.php
index 6bcefc2..459b26a 100644
--- a/apps/files_publiclink/get.php
+++ b/apps/files_publiclink/get.php
@@ -39,6 +39,8 @@ if($path!==false){
// Make breadcrumb
$breadcrumb = array();
+ $breadcrumb[] = array("dir" => "/", "name" => "/" ); // include the root dir
+
$pathtohere = "/";
foreach( explode( "/", $subPath ) as $i ){
if( $i != "" ){
@@ -80,4 +82,4 @@ if($path!==false){
$tmpl->printPage();
die();
}
-?>
\ No newline at end of file
+?>
diff --git a/docs/skeleton/index.php b/docs/skeleton/index.php
index 1004388..a0b8693 100644
--- a/docs/skeleton/index.php
+++ b/docs/skeleton/index.php
@@ -46,6 +46,8 @@ foreach( OC_Files::getdirectorycontent( $dir ) as $i ){
// Make breadcrumb
$breadcrumb = array();
+$breadcrumb[] = array("dir" => "/", "name" => "/" ); // include the root dir
+
$pathtohere = "/";
foreach( explode( "/", $dir ) as $i ){
if( $i != "" ){
diff --git a/files/ajax/list.php b/files/ajax/list.php
index 547bc91..e75593a 100644
--- a/files/ajax/list.php
+++ b/files/ajax/list.php
@@ -20,6 +20,8 @@ $data = array();
// Make breadcrumb
if($doBreadcrumb){
$breadcrumb = array();
+ $breadcrumb[] = array("dir" => "/", "name" => "/" ); // include the root dir
+
$pathtohere = "/";
foreach( explode( "/", $dir ) as $i ){
if( $i != "" ){
diff --git a/files/index.php b/files/index.php
index 821879b..6a6a708 100644
--- a/files/index.php
+++ b/files/index.php
@@ -58,6 +58,7 @@ foreach( OC_Files::getdirectorycontent( $dir ) as $i ){
// Make breadcrumb
$breadcrumb = array();
+$breadcrumb[] = array("dir" => "/", "name" => "/" ); // include the root dir
$pathtohere = "";
foreach( explode( "/", $dir ) as $i ){
if( $i != "" ){
diff --git a/files/settings.php b/files/settings.php
index 1f2e9d9..08e8d5c 100644
--- a/files/settings.php
+++ b/files/settings.php
@@ -46,6 +46,8 @@ foreach( OC_Files::getdirectorycontent( $dir ) as $i ){
// Make breadcrumb
$breadcrumb = array();
+$breadcrumb[] = array("dir" => "/", "name" => "/" ); // include the root dir
+
$pathtohere = "/";
foreach( explode( "/", $dir ) as $i ){
if( $i != "" ){
_______________________________________________
Owncloud mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/owncloud