From c904cd0bb9748eaffe909b3f3fc5eb5719dfa6a6 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 12 May 2006 06:00:06 +0000 Subject: [PATCH] Fixed printf , parameter was missing, added styles git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3304 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/class_plugin.inc | 6 +++--- plugins/admin/departments/class_departmentGeneric.inc | 7 +++++++ 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/include/class_plugin.inc b/include/class_plugin.inc index 7a24d0e8c..1a74a7538 100644 --- a/include/class_plugin.inc +++ b/include/class_plugin.inc @@ -906,14 +906,14 @@ class plugin $attrs= $ldap->fetch(); if(isset($attrs['gosaUnitTag'][0]) && $attrs['gosaUnitTag'][0] == $tag){ if ($show) { - echo sprintf(_("Processing: Object '%s' is already tagged"), $dn); + echo sprintf(_("Processing: Object '%s' is already tagged"), $dn)."
"; flush(); } return; } if (count($attrs)){ if ($show){ - echo sprintf(_("Processing: Adding tag (%s) to object '%s'"), $dn); + echo sprintf(_("Processing: Adding tag (%s) to object '%s'"), $tag,$dn)."
"; flush(); } $nattrs= array("gosaUnitTag" => $this->gosaUnitTag); @@ -942,7 +942,7 @@ class plugin } if (count($attrs)){ if ($show){ - echo sprintf(_("Processing: Removing tag from object '%s'"), $dn); + echo sprintf(_("Processing: Removing tag from object '%s'"), $dn)."
"; flush(); } $nattrs= array("gosaUnitTag" => array()); diff --git a/plugins/admin/departments/class_departmentGeneric.inc b/plugins/admin/departments/class_departmentGeneric.inc index 53afc78d7..1f788f195 100644 --- a/plugins/admin/departments/class_departmentGeneric.inc +++ b/plugins/admin/departments/class_departmentGeneric.inc @@ -360,6 +360,13 @@ class department extends plugin /* Tag objects to have the gosaAdministrativeUnitTag */ function tag_objects($OnlySetTagFlag = false) { + if(!$OnlySetTagFlag){ + $smarty= get_smarty(); + echo "".$smarty->fetch(get_template_path('headers.tpl')); + echo ""; + echo "

".sprintf(_("Tagging '%s'."),"".$this->dn."")."

"; + } + $add= $this->is_administrational_unit; $len= strlen($this->dn); $ldap= $this->config->get_ldap_link(); -- 2.30.2