- warning fixed: $_GET['year'] and $_GET['month'] are not always defined to
create navigation bar in admin/stats. $_GET['day'] does not exist git-svn-id: http://piwigo.org/svn/trunk@904 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
233bd56dd8
commit
f223675e5d
1 changed files with 19 additions and 7 deletions
|
@ -273,13 +273,25 @@ $query = '
|
|||
$page['nb_logs']=$row['nb_logs'];
|
||||
|
||||
//display nav bar
|
||||
$url = $_SERVER['PHP_SELF'].'?page=stats&year='.$_GET['year'];
|
||||
$url .= '&month='.$_GET['month'].'&day='.$_GET['day'];
|
||||
$page['navigation_bar'] =
|
||||
create_navigation_bar( $url, $page['nb_logs'],$page['start'],$conf['nb_logs_page'], 'admin' );
|
||||
$template->assign_block_vars('navigation',
|
||||
array('NAV_BAR' => $page['navigation_bar'])
|
||||
);
|
||||
$url = $_SERVER['PHP_SELF'].'?page=stats';
|
||||
$url.= isset($_GET['year']) ? '&year='.$_GET['year'] : '';
|
||||
$url.= isset($_GET['month']) ? '&month='.$_GET['month'] : '';
|
||||
|
||||
$page['navigation_bar'] =
|
||||
create_navigation_bar(
|
||||
$url,
|
||||
$page['nb_logs'],
|
||||
$page['start'],
|
||||
$conf['nb_logs_page'],
|
||||
'admin'
|
||||
);
|
||||
|
||||
$template->assign_block_vars(
|
||||
'navigation',
|
||||
array(
|
||||
'NAV_BAR' => $page['navigation_bar']
|
||||
)
|
||||
);
|
||||
|
||||
//----------------------------------------------------------- sending html code
|
||||
$template->assign_var_from_handle('ADMIN_CONTENT', 'stats');
|
||||
|
|
Loading…
Add table
Reference in a new issue