Permalink
Browse files

Change to using skin

  • Loading branch information...
1 parent f52ca6b commit 93531b24c822c2d25f00036102373bddd9e3e717 @pudge pudge committed Jul 9, 2004
Showing with 11 additions and 5 deletions.
  1. +11 −5 plugins/Page/page.pl
View
@@ -24,11 +24,17 @@ sub main {
return;
}
- my $section = $slashdb->getSection($form->{section});
-
- my $title = getData('head', { section => $section->{section} });
- header($title, $section->{section}) or return;
- slashDisplay('index', { 'index' => $index, section => $section->{section} });
+ my $skin_name = $form->{section};
+ my $skid = $skin_name
+ ? $slashdb->getSkidFromName($skin_name)
+ : determineCurrentSkin();
+ setCurrentSkin($skid);
+ my $gSkin = getCurrentSkin();
+ $skin_name = $gSkin->{name};
+
+ my $title = getData('head', { section => $skin_name });
+ header($title, $skin_name) or return;
+ slashDisplay('index', { 'index' => $index, section => $skin_name });
footer();

0 comments on commit 93531b2

Please sign in to comment.