index 4d438b211435b1253efe2f9771bf72f2674ed20d..49fa2ef9b3dfa87d0ffe91be2bedb88f5c1e9d71 100644 (file)
if ($remove_lock){
if(session::is_set('macroManagement')){
- $macroManagment = session::get('macroManagment');
- $macroManagment->remove_lock();
- del_lock ($ui->dn);
- session::un_set ('macroManagment');
+ $macroManagement = session::get('macroManagement');
+ $macroManagement->remove_lock();
+ session::un_set ('macroManagement');
}
} else {
- /* Create macroManagment object on demand */
- if (!session::is_set('macroManagment') || (isset($_GET['reset']) && $_GET['reset'] == 1)){
- session::set('macroManagment',new goFonMacro ($config, $ui));
+ /* Create macroManagement object on demand */
+ if (!session::is_set('macroManagement') || (isset($_GET['reset']) && $_GET['reset'] == 1)){
+ session::set('macroManagement',new goFonMacro ($config, $ui));
}
/* Get object */
- $macroManagment = session::get('macroManagment');
- $macroManagment->save_object();
- $output= $macroManagment->execute();
+ $macroManagement = session::get('macroManagement');
+ $macroManagement->save_object();
+ $output= $macroManagement->execute();
/* Page header*/
if (session::is_set('objectinfo')){
$display= print_header( get_template_path('images/macros.png'),
_("Phone macro management"),
- "<img alt=\"\" align=\"middle\" src=\"".get_template_path('images/closedlock.png')."\">
+ "<img alt=\"\" align=\"middle\" src=\"".get_template_path('images/lists/locked.png')."\">
".@LDAP::fix(session::get('objectinfo')));
} else {
$display= print_header(get_template_path('images/macros.png'), _("Phone macro management"));
/* Reset requested? */
if (isset($_GET['reset']) && $_GET['reset'] == 1){
del_lock ($ui->dn);
- session::un_set ('macroManagment');
+ session::un_set ('macroManagement');
}
/* Show and save dialog */
$display.= $output;
- session::set('macroManagment',$macroManagment);
+ session::set('macroManagement',$macroManagement);
}
// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
?>