Variable name change

This commit is contained in:
Sean Harvey 2008-04-20 00:44:14 +00:00
parent b298e83a0f
commit 985abc7557

View File

@ -399,7 +399,7 @@ abstract class MultiForm extends Form {
if($step->getNextStep()) { if($step->getNextStep()) {
// Is this step in the DB? If it is, we use that // Is this step in the DB? If it is, we use that
if($nextStep = $step->getNextStepFromDatabase()) { if($nextStep = $step->getNextStepFromDatabase()) {
$templateData = array( $record = array(
'ID' => $nextStep->ID, 'ID' => $nextStep->ID,
'ClassName' => $nextStep->class, 'ClassName' => $nextStep->class,
'Title' => $nextStep->getTitle(), 'Title' => $nextStep->getTitle(),
@ -409,13 +409,13 @@ abstract class MultiForm extends Form {
} else { } else {
// If it's not in the DB, we use a singleton instance of it instead - this step hasn't been accessed yet // If it's not in the DB, we use a singleton instance of it instead - this step hasn't been accessed yet
$nextStep = singleton($step->getNextStep()); $nextStep = singleton($step->getNextStep());
$templateData = array( $record = array(
'ClassName' => $nextStep->class, 'ClassName' => $nextStep->class,
'Title' => $nextStep->getTitle() 'Title' => $nextStep->getTitle()
); );
} }
// Add the array data, and do a callback // Add the array data, and do a callback
$stepsFound->push(new ArrayData($templateData)); $stepsFound->push(new ArrayData($record));
$this->getAllStepsRecursive($nextStep, $stepsFound); $this->getAllStepsRecursive($nextStep, $stepsFound);
} }
// Once we've reached the final step, we just return what we've collected // Once we've reached the final step, we just return what we've collected