From cf6c5ddd96c35ba2c0c26637c58bb08516d38f69 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 8 May 2006 09:27:25 +0000 Subject: [PATCH] Added modellname change git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3215 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/class_ppdManager.inc | 6 ++++++ 1 file changed, 6 insertions(+) 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; -- 2.30.2