Skip to content

Commit

Permalink
Change tour node type to default to fix individual stops tourml
Browse files Browse the repository at this point in the history
  • Loading branch information
tokersey committed Jan 28, 2015
1 parent 9d07e88 commit 121218d
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions modules/tap/includes/tourml.class.inc
Expand Up @@ -32,7 +32,12 @@ class TourML {
$node = node_load($this->nid);

switch ($node->type) {
case 'tour':
case 'tour_set':
$this->processTourSet();
$this->tourml = theme('tap_tourml_tour_set', array('tour_set' => $this));
break;

default:
$stopNodes = $this->loadStopNodes();

$this->processStops($stopNodes);
Expand All @@ -41,12 +46,6 @@ class TourML {
$this->processAssets();

$this->tourml = theme('tap_tourml_tour', array('tour' => $this));
break;

case 'tour_set':
$this->processTourSet();
$this->tourml = theme('tap_tourml_tour_set', array('tour_set' => $this));
break;
}

return $this->tourml;
Expand Down

0 comments on commit 121218d

Please sign in to comment.