Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
wfpl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
format_caption/format_varname: split words on camelCase
[wfpl.git]
/
metaform.php
diff --git
a/metaform.php
b/metaform.php
index
a16e92f
..
1cfb70c
100644
(file)
--- a/
metaform.php
+++ b/
metaform.php
@@
-18,10
+18,10
@@
# This file writes the code for you (sql, php, html, email) to handle a form.
# This file writes the code for you (sql, php, html, email) to handle a form.
-require_once('code/wfpl/template.php');
-require_once('code/wfpl/http.php');
-require_once('code/wfpl/tar.php');
-require_once('code/wfpl/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(
# see code/wfpl/metaform/template.html for the html templates for these elements
$GLOBALS['types'] = array(
@@
-179,10
+179,6
@@
function get_fields() {
$name = trim(substr($field, 0, -1)); # FIXME: stop this from getting enc_caption()ed
$type = '{';
$options = null;
$name = trim(substr($field, 0, -1)); # FIXME: stop this from getting enc_caption()ed
$type = '{';
$options = null;
- } elseif(substr($field, -1) == '{') {
- $name = 'ignored';
- $type = '}';
- $options = null;
} else {
list($name, $type, $options) = split(' *', $field);
if($options) $options = explode(',', $options);
} else {
list($name, $type, $options) = split(' *', $field);
if($options) $options = explode(',', $options);