View | Details | Raw Unified | Return to bug 15326
Collapse All | Expand All

(-)a/opac/opac-cmspages.pl (-1 / +1 lines)
Lines 46-52 my ( $theme, $news_lang, $availablethemes ) = C4::Templates::themelanguage( Link Here
46
# List all pages, if id is set generate parent page list and data.
46
# List all pages, if id is set generate parent page list and data.
47
my ( $page_list, $parent_list, $page_data ) = Koha::CmsPages->list( $id );
47
my ( $page_list, $parent_list, $page_data ) = Koha::CmsPages->list( $id );
48
48
49
my $links = Koha::CmsPages->search( {}, { order_by => 'sortorder' } );
49
my $links = Koha::CmsPages->search( { publish => 1 }, { order_by => 'sortorder' } );
50
my $cms_data = Koha::CmsPages->find( $id );
50
my $cms_data = Koha::CmsPages->find( $id );
51
$template->param(
51
$template->param(
52
    links       => $links,
52
    links       => $links,
(-)a/opac/opac-main.pl (-3 / +2 lines)
Lines 100-107 $template->param( Link Here
100
100
101
my $id = scalar $input->param( 'id' ) // '';
101
my $id = scalar $input->param( 'id' ) // '';
102
my ( $page_list, $parent_list, $page_data ) = Koha::CmsPages->list( $id );
102
my ( $page_list, $parent_list, $page_data ) = Koha::CmsPages->list( $id );
103
my $links = Koha::CmsPages->search( {}, { order_by => 'parent' } );
103
my $links = Koha::CmsPages->search( { publish => 1 }, { order_by => 'parent' } );
104
my $cms_data = Koha::CmsPages->page( $id );
104
my $cms_data = Koha::CmsPages->find( $id );
105
$template->param(
105
$template->param(
106
    links       => $links,
106
    links       => $links,
107
    cms_page    => $cms_data,
107
    cms_page    => $cms_data,
108
- 

Return to bug 15326