From 5aff284dd45a35e1485717806a3d385c63da9444 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 21 Jun 2005 09:32:03 +0000 Subject: [PATCH] updated git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@777 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/gofon/macro/class_gofonMacro.inc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/gofon/macro/class_gofonMacro.inc b/plugins/gofon/macro/class_gofonMacro.inc index 01024676f..30bfc156d 100755 --- a/plugins/gofon/macro/class_gofonMacro.inc +++ b/plugins/gofon/macro/class_gofonMacro.inc @@ -127,6 +127,11 @@ class macro extends plugin if(($this->cn != strtolower($this->cn))||(empty($this->cn))){ $message[] = "The attribute 'cn' must be lowercase and a least one char."; } + + if(count(split("\n",$this->goFonMacroContent))>100){ + $message[] = _("Makro length must be lower than 100 lines"); + } + return $message; } -- 2.30.2