Skip to content
Permalink
Browse files

breadcrumb: cat1+cat2 -> cat1/cat2

same as section_category mode
  • Loading branch information
bloatware committed Jan 14, 2020
1 parent 95f1db9 commit 31fc23f0c69f5309c0798c2567f019b5373e5b32
Showing with 7 additions and 5 deletions.
  1. +1 −1 textpattern/lib/txplib_misc.php
  2. +6 −4 textpattern/lib/txplib_publish.php
@@ -4621,7 +4621,7 @@ function permlinkurl($article_array, $hu = hu)
$out .= implode('/', $c1_path).'/';
} else {
$c0_path = array_intersect($c1_path, $c2_path);
$out .= ($c0_path ? implode('/', $c0_path).'/' : '')."$category1+$category2/";
$out .= ($c0_path ? implode('/', $c0_path).'/' : '')."$category1/$category2/";
}
}
}
@@ -731,7 +731,7 @@ function filterAtts($atts = null, $iscustom = null)
if ($exclude && $exclude !== true) {
$exclude = array_map('strtolower', do_list_unique($exclude));
$excluded = array_filter($exclude, 'is_numeric');
$exclude = array_diff($exclude, $excluded);
empty($excluded) or $exclude = array_diff($exclude, $excluded);
} else {
$exclude or $exclude = array();
$excluded = array();
@@ -776,9 +776,11 @@ function filterAtts($atts = null, $iscustom = null)
);
}

foreach($customlAtts as $cField => $val) {
if (isset($exclude[$cField]) && !isset($atts[$cField])) {
$atts[$cField] = $exclude[$cField];
if ($exclude && is_array($exclude)) {
foreach($exclude as $cField => $val) {
if (array_key_exists($cField, $customlAtts) && !isset($atts[$cField])) {
$atts[$cField] = $val;
}
}
}

0 comments on commit 31fc23f

Please sign in to comment.
You can’t perform that action at this time.