summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5607b32)
raw | patch | inline | side by side (parent: 5607b32)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 24 Oct 2008 14:54:17 +0000 (14:54 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 24 Oct 2008 14:54:17 +0000 (14:54 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@12774 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/gofon/macro/class_gofonMacro.inc | patch | blob | history |
index 6c273b53e0f56b27702f574677c446609c6ca235..6043a63f692c6d59ac44436af587d98ef85f7a50 100644 (file)
# if(substr_count($s_linestr,",") !=2){
# return(sprintf(_("More than two ',' given in line : '%s'. Remember that parameters are seperated by '|'."),$i_linenum));
# }
- /* Multiple () are not supproted currently ... */
- if(substr_count($s_linestr,"(") >1 ){
- return(sprintf(_("More than one '(' is currently not supported. Line : '%s'."),$i_linenum));
+
+# /* Multiple () are not supproted currently ... */
+# if(substr_count($s_linestr,"(") >1 ){
+# return(sprintf(_("More than one '(' is currently not supported. Line : '%s'."),$i_linenum));
+# }
+# if(substr_count($s_linestr,")") >1 ){
+# return(sprintf(_("More than one ')' is currently not supported. Line : '%s'."),$i_linenum));
+# }
+
+ /* Check if there is an application given */
+ if(empty($tmp[1])){
+ return(sprintf(_("There is no application given in line : '%s'."),$i_linenum));
}
- if(substr_count($s_linestr,")") >1 ){
- return(sprintf(_("More than one ')' is currently not supported. Line : '%s'."),$i_linenum));
+ /* Check if there is an extension given */
+ if(empty($tmp[0])){
+ return(sprintf(_("There is no extension type given in line : '%s'."),$i_linenum));
}
/* Create extension entry for current line