JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
fix require_once() paths
[wfpl.git] / metaform.php
index b8580f4..2be93ea 100644 (file)
 
 # This file writes the code for you (sql, php, html, email) to handle a form.
 
-require_once(__DIR__ . '/template.php');
-require_once(__DIR__ . '/http.php');
-require_once(__DIR__ . '/tar.php');
-require_once(__DIR__ . '/format.php');
+require_once(__DIR__.'/'.'template.php');
+require_once(__DIR__.'/'.'http.php');
+require_once(__DIR__.'/'.'tar.php');
+require_once(__DIR__.'/'.'format.php');
 
 # see code/wfpl/metaform/template.html for the html templates for these elements
 $GLOBALS['types'] = array(
@@ -599,8 +599,8 @@ function download_tar() {
        $files = array(
                "INSTALL" => read_whole_file('code/wfpl/metaform/INSTALL'),
                ".htaccess" => make_htaccess(),
-               "run.php" => "<?php\n\nrequire_once(__DIR__ . '/code/wfpl/run.php');",
-               "style.less" => read_whole_file('code/wfpl/metaform/style.less'),
+               "run.php" => "<?php\n\nrequire_once(__DIR__.'/'.'code/wfpl/run.php');\n",
+               "styl.styl" => read_whole_file('code/wfpl/metaform/styl.styl'),
                "template.html" => read_whole_file('code/wfpl/metaform/site-template.html'),
                "$admin_name.html" => make_html(),
                "$admin_name.php" => make_php());