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 108-115 $template->param( Link Here
108
108
109
my $id = scalar $input->param( 'id' ) // '';
109
my $id = scalar $input->param( 'id' ) // '';
110
my ( $page_list, $parent_list, $page_data ) = Koha::CmsPages->list( $id );
110
my ( $page_list, $parent_list, $page_data ) = Koha::CmsPages->list( $id );
111
my $links = Koha::CmsPages->search( {}, { order_by => 'parent' } );
111
my $links = Koha::CmsPages->search( { publish => 1 }, { order_by => 'parent' } );
112
my $cms_data = Koha::CmsPages->page( $id );
112
my $cms_data = Koha::CmsPages->find( $id );
113
$template->param(
113
$template->param(
114
    links       => $links,
114
    links       => $links,
115
    cms_page    => $cms_data,
115
    cms_page    => $cms_data,
116
- 

Return to bug 15326