[248845] Refactoring generate1.php into different files with a functional approach
better use of constants.
diff --git a/classes/system/feature.class.php b/classes/system/feature.class.php
index fcf2d23..b040f10 100644
--- a/classes/system/feature.class.php
+++ b/classes/system/feature.class.php
@@ -70,11 +70,11 @@
 	 * Copies all the necessary legal files in the destination folder specified.
 	 */
 	function copyLegalFiles($dir) {
-		exec("cp ${LEGAL_FILES_DIR}about.html $dir");
-		exec("cp ${LEGAL_FILES_DIR}eclipse_update_120.jpg $dir");
-		exec("cp ${LEGAL_FILES_DIR}epl-v10.html $dir");
-		exec("cp ${LEGAL_FILES_DIR}feature.properties $dir");
-		exec("cp ${LEGAL_FILES_DIR}license.html $dir");
+		exec("cp ". LEGAL_FILES_DIR. "about.html $dir");
+		exec("cp ". LEGAL_FILES_DIR. "eclipse_update_120.jpg $dir");
+		exec("cp ". LEGAL_FILES_DIR. "epl-v10.html $dir");
+		exec("cp ". LEGAL_FILES_DIR. "feature.properties $dir");
+		exec("cp ". LEGAL_FILES_DIR. "license.html $dir");
 	}
 	
 	/**
diff --git a/classes/system/fragment.class.php b/classes/system/fragment.class.php
index a66bfd2..f76156a 100644
--- a/classes/system/fragment.class.php
+++ b/classes/system/fragment.class.php
@@ -98,7 +98,7 @@
 		} else {
 			exec("mkdir -p $fragment_root");
 		}
-		exec("cp ${LEGAL_FILES_DIR}about.html $fragment_root");
+		exec("cp ". LEGAL_FILES_DIR. "about.html $fragment_root");
 		$this->generate_manifest($fragment_root);
 		foreach($this->files as $file) {
 			$fullpath = $fragment_root . $file->appendLangCode($this->language->iso);