From 89692b7215b62a467214016a3045de474a04f221 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 29 Jul 2010 14:23:21 +0000 Subject: [PATCH] Updated mysql connection and query handling, ensure that strings are save.wq git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19286 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../gofon/gofon/macro/tabs_macros.inc | 48 +++++++++---------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/gosa-plugins/gofon/gofon/macro/tabs_macros.inc b/gosa-plugins/gofon/gofon/macro/tabs_macros.inc index a50d87972..930ff14e7 100644 --- a/gosa-plugins/gofon/gofon/macro/tabs_macros.inc +++ b/gosa-plugins/gofon/gofon/macro/tabs_macros.inc @@ -3,39 +3,39 @@ class macrotabs extends tabs { - function macrotabs($config, $data, $dn,$category) - { - tabs::tabs($config, $data, $dn,$category); + function macrotabs($config, $data, $dn,$category) + { + tabs::tabs($config, $data, $dn,$category); - /* Add references/acls/snapshots */ - $this->addSpecialTabs(); - } + /* Add references/acls/snapshots */ + $this->addSpecialTabs(); + } - function save($ignore_account= FALSE) - { - $baseobject= $this->by_object['macro']; + function save($ignore_account= FALSE) + { + $baseobject= $this->by_object['macro']; - /* Check for new 'dn', in order to propagate the - 'dn' to all plugins */ - $cn = preg_replace('/,/', '\,', $baseobject->cn); - $cn = preg_replace('/"/', '\"', $cn); - $new_dn= @LDAP::convert("cn=".$cn.",".get_ou("macro", "phoneMacroRDN").$baseobject->base); + /* Check for new 'dn', in order to propagate the + 'dn' to all plugins */ + $cn = preg_replace('/,/', '\,', $baseobject->cn); + $cn = preg_replace('/"/', '\"', $cn); + $new_dn= @LDAP::convert("cn=".$cn.",".get_ou("macro", "phoneMacroRDN").$baseobject->base); /* Move group? */ if ($this->dn != $new_dn){ - /* Write entry on new 'dn' */ - if ($this->dn != "new"){ - $baseobject->move($this->dn, $new_dn); - $this->by_object['macro']= $baseobject; - } + /* Write entry on new 'dn' */ + if ($this->dn != "new"){ + $baseobject->move($this->dn, $new_dn); + $this->by_object['macro']= $baseobject; + } - /* Happen to use the new one */ - $this->dn= $new_dn; + /* Happen to use the new one */ + $this->dn= $new_dn; } - - tabs::save(); - } + + tabs::save(); + } } -- 2.30.2