Merge branch 'fix/wizard_breadcrum' into 'develop'

Breadcrum fix do not rollback...

See merge request artica/pandorafms!2366

Former-commit-id: 473f668f6a6a9be11e551aecbb21317004785314
This commit is contained in:
fbsanchez 2019-04-22 10:56:26 +02:00
commit b31051f9a1
1 changed files with 5 additions and 14 deletions

View File

@ -196,7 +196,7 @@ class Wizard
*
* @return void
*/
public function prepareBreadcrum(array $urls, bool $add=false, bool $separator_beginning=false)
public function prepareBreadcrum(array $urls, bool $add=false)
{
$bc = [];
$i = 0;
@ -213,18 +213,9 @@ class Wizard
}
$bc[$i] = '';
if ($separator_beginning === true) {
$bc[$i] .= '<span class="breadcrumb_link">&nbsp/&nbsp</span>';
}
$bc[$i] .= '<span><a class="breadcrumb_link '.$class.'" href="'.$url['link'].'">';
$bc[$i] .= $url['label'];
$bc[$i] .= '</a>';
if ($count < $array_size) {
$bc[$i] .= '<span class="breadcrumb_link">&nbsp/&nbsp</span>';
}
$bc[$i] .= '<span><a class="breadcrumb_link '.$class.'" href="'.$url['link'].'">';
$bc[$i] .= $url['label'];
$bc[$i] .= '</a>';
$bc[$i] .= '</span>';
$i++;
@ -275,7 +266,7 @@ class Wizard
*/
public function printBreadcrum()
{
return implode('', $this->breadcrum);
return implode('<span class="breadcrumb_link">&nbsp/&nbsp</span>', $this->breadcrum);
}