[Uml-devel] branches/KDE/3.5/kdesdk/umbrello/umbrello/codegenerators

Oliver Kellogg okellogg at users.sourceforge.net
Sat Aug 26 10:41:20 UTC 2006


SVN commit 577335 by okellogg:

Patch from Clarke Brunsdon at
 http://www.nullfs.com/umbrello_php5_require_fix.patch
fixes a logic error where the file would not be included if it _did_ find a
file to include, and also changes the include to a require_once.
Thanks Clarke for contributing.


 M  +2 -2      php5writer.cpp  


--- branches/KDE/3.5/kdesdk/umbrello/umbrello/codegenerators/php5writer.cpp #577334:577335
@@ -3036,8 +3036,8 @@
     UMLClassifier *conc;
     for(conc = includes.first(); conc ;conc = includes.next()) {
         QString headerName = findFileName(conc, ".php");
-        if (headerName.isEmpty()) {
-            php << "include '" << headerName << "';" << m_endl;
+        if (!headerName.isEmpty()) {
+            php << "require_once '" << headerName << "';" << m_endl;
         }
     }
     php << m_endl;




More information about the umbrello-devel mailing list