mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
Cleanup of global variable references.
This commit is contained in:
parent
d7529d18e9
commit
5683ffaaa0
10
set_box.php
10
set_box.php
@ -60,15 +60,17 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
$GLOBALS['phpgw']->preferences->delete('portal_order',$new_order);
|
$GLOBALS['phpgw']->preferences->delete('portal_order',$new_order);
|
||||||
$GLOBALS['phpgw']->preferences->add('portal_order',$new_order,intval($GLOBALS['HTTP_GET_VARS']['app']));
|
$GLOBALS['phpgw']->preferences->add('portal_order',$new_order,intval($_GET['app']));
|
||||||
|
|
||||||
$GLOBALS['phpgw']->preferences->save_repository();
|
$GLOBALS['phpgw']->preferences->save_repository();
|
||||||
}
|
}
|
||||||
|
|
||||||
switch($GLOBALS['HTTP_GET_VARS']['control'])
|
//error_reporting(E_ALL);
|
||||||
|
switch($_GET['control'])
|
||||||
{
|
{
|
||||||
|
//print_debug('set_box', $GLOBALS['phpgw_info']['user']['preferences']['portal_order']),'app',5);
|
||||||
case 'up':
|
case 'up':
|
||||||
$curr_position = $GLOBALS['phpgw']->common->find_portal_order(intval($GLOBALS['HTTP_GET_VARS']['app']));
|
$curr_position = $GLOBALS['phpgw']->common->find_portal_order(intval($_GET['app']));
|
||||||
$max_count = count($GLOBALS['phpgw_info']['user']['preferences']['portal_order']) - 1;
|
$max_count = count($GLOBALS['phpgw_info']['user']['preferences']['portal_order']) - 1;
|
||||||
$offset = -1;
|
$offset = -1;
|
||||||
if($curr_position == 0)
|
if($curr_position == 0)
|
||||||
@ -82,7 +84,7 @@
|
|||||||
move_boxes($curr_position,$new_order,$offset,0,$max_count);
|
move_boxes($curr_position,$new_order,$offset,0,$max_count);
|
||||||
break;
|
break;
|
||||||
case 'down':
|
case 'down':
|
||||||
$curr_position = $GLOBALS['phpgw']->common->find_portal_order(intval($GLOBALS['HTTP_GET_VARS']['app']));
|
$curr_position = $GLOBALS['phpgw']->common->find_portal_order(intval($_GET['app']));
|
||||||
$max_count = count($GLOBALS['phpgw_info']['user']['preferences']['portal_order']) - 1;
|
$max_count = count($GLOBALS['phpgw_info']['user']['preferences']['portal_order']) - 1;
|
||||||
$offset = 1;
|
$offset = 1;
|
||||||
if($curr_position == $max_count)
|
if($curr_position == $max_count)
|
||||||
|
Loading…
Reference in New Issue
Block a user