Changeset 9 for branches/portal_by_daris

Show
Ignore:
Timestamp:
02/08/09 08:50:31 (3 years ago)
Author:
daris
Message:

portal: fixed error with missing position field in menu panel

Location:
branches/portal_by_daris
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/portal_by_daris/admin/panels.php

    r5 r9  
    4444        $location = intval($_POST['location']); 
    4545        $file = $_POST['file']; 
    46         $position = intval($_POST['position']); 
     46        $position = /*intval($_POST['position'])*/0; 
    4747 
    4848        ($hook = get_hook('afo_add_forum_form_submitted')) ? eval($hook) : null; 
  • branches/portal_by_daris/panels/menu.php

    r5 r9  
    2929        'SELECT'        => 'pg.id, pg.title, pg.content', 
    3030        'FROM'          => 'pages AS pg', 
    31         'WHERE'         => 'pg.position<>-1', 
    32         'ORDER BY'      => 'pg.position ASC', 
    3331); 
    3432($hook = get_hook('pr_menu_qr_get_pages')) ? eval($hook) : null;