summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c3af176)
raw | patch | inline | side by side (parent: c3af176)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 29 Jul 2010 14:23:21 +0000 (14:23 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 29 Jul 2010 14:23:21 +0000 (14:23 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19286 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/gofon/gofon/macro/tabs_macros.inc | patch | blob | history |
diff --git a/gosa-plugins/gofon/gofon/macro/tabs_macros.inc b/gosa-plugins/gofon/gofon/macro/tabs_macros.inc
index a50d879720c37266b607ade2e6e82dc6b5da36c5..930ff14e7b797c31c0a563f08764fee2865aa179 100644 (file)
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();
+ }
}