summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6b6c7d4)
raw | patch | inline | side by side (parent: 6b6c7d4)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 13 Sep 2010 13:39:23 +0000 (13:39 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 13 Sep 2010 13:39:23 +0000 (13:39 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19641 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/gofon/gofon/macro/main.inc | patch | blob | history |
index 9cd2f4ab3ad40154d45993a55dd7b3c6d89b7974..ee36038086aa999b1807d43ee89f59c584d55be6 100644 (file)
*/
/* Remove locks created by this plugin
-*/
+ */
if ($remove_lock){
- if(session::is_set('goFonMacro')){
- $macl = session::get('goFonMacro');
- $macl->remove_lock();
- }
+ if(session::is_set('goFonMacro')){
+ $macl = session::get('goFonMacro');
+ $macl->remove_lock();
+ session::un_set('goFonMacro');
+ }
}
/* Remove this plugin from session
-*/
+ */
if ( $cleanup ){
- session::un_set('goFonMacro');
+ session::un_set('goFonMacro');
}else{
- /* Create goFonMacro object on demand */
- if (!session::is_set('goFonMacro')){
- $goFonMacro= new goFonMacro ($config, $ui);
- session::set('goFonMacro',$goFonMacro);
- }
- $goFonMacro = session::get('goFonMacro');
- $display= $goFonMacro->execute();
+ /* Create goFonMacro object on demand */
+ if (!session::is_set('goFonMacro')){
+ $goFonMacro= new goFonMacro ($config, $ui);
+ session::set('goFonMacro',$goFonMacro);
+ }
+ $goFonMacro = session::get('goFonMacro');
+ $display= $goFonMacro->execute();
- /* Reset requested? */
- if (isset($_GET['reset']) && $_GET['reset'] == 1){
- session::un_set ('goFonMacro');
- }
+ /* Reset requested? */
+ if (isset($_GET['reset']) && $_GET['reset'] == 1){
+ session::un_set ('goFonMacro');
+ }
- /* Show and save dialog */
- session::set('goFonMacro',$goFonMacro);
+ /* Show and save dialog */
+ session::set('goFonMacro',$goFonMacro);
}
// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: