From: hickert Date: Mon, 8 May 2006 09:27:25 +0000 (+0000) Subject: Added modellname change X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=cf6c5ddd96c35ba2c0c26637c58bb08516d38f69;p=gosa.git Added modellname change git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3215 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/class_ppdManager.inc b/include/class_ppdManager.inc index c533fb800..7e416556d 100644 --- a/include/class_ppdManager.inc +++ b/include/class_ppdManager.inc @@ -73,6 +73,12 @@ class ppdManager continue; } + /* Change model name .. */ + if ((preg_match("/^\*".$attribute.":*\s+/",$line)) && ($attribute == "ModelName")){ + $line= "*$attribute: \"$value\"\n"; + $done =true; + } + if (($fsection) && ($section != "NO_SECTION")){ if (preg_match("/^\*CloseGroup:*\s+\**$section\/*/", $line)){ $fsection= false;