Skip to content
This repository has been archived by the owner on Nov 28, 2018. It is now read-only.

Adding missing variable to progressMenu. #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion views/helpers/wizard.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,13 @@ function stepNumber($step = null, $shiftIndex = 1) {
return false;
}
}

function stepTotal()
{
$steps = $this->config('steps');
return count($steps);
}

/**
* Returns a set of html elements containing links for each step in the wizard.
*
Expand All @@ -86,7 +93,8 @@ function stepNumber($step = null, $shiftIndex = 1) {
function progressMenu($titles = array(), $attributes = array(), $htmlAttributes = array(), $confirmMessage = false, $escapeTitle = true) {
$wizardConfig = $this->config();
extract($wizardConfig);

$wizardAction = $this->config('wizardAction');

$attributes = array_merge(array('wrap' => 'div'), $attributes);
extract($attributes);

Expand Down