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
db_printf(): add %$ (not encoded) param
[wfpl.git]
/
metaform
/
template.php
diff --git
a/metaform/template.php
b/metaform/template.php
index
1bb7e65
..
aea7bd6
100644
(file)
--- a/
metaform/template.php
+++ b/
metaform/template.php
@@
-90,17
+90,16
@@
function ~file_name~_display_main() {
message('Error: Broken link');
return './~file_name~';
}
message('Error: Broken link');
return './~file_name~';
}
- $row = db_get_assoc('~table_name~', 'id,'.~file_name upper~_DB_FIELDS, 'where id=%i', $id);
- if(!$row) {
+ $data = db_get_assoc('~table_name~', 'id,'.~file_name upper~_DB_FIELDS, 'where id=%i', $id);
+ if(!$data) {
message('Error: ~singular cap~ not found');
return './~file_name~';
}
message('Error: ~singular cap~ not found');
return './~file_name~';
}
- tem_set('display', $row);
+ tem_set('display', $data);
}
function ~file_name~_edit_main() {<!--~}~--><!--~pulldowns {~-->
}
function ~file_name~_edit_main() {<!--~}~--><!--~pulldowns {~-->
- pulldown('~name~', ~pulldown_options~);
-<!--~}~--><!--~opt_db {~-->
+ pulldown('~name~', ~pulldown_options~);<!--~}~--><!--~opt_db {~-->
$edit_id = format_int($_REQUEST['~file_name~_edit_id']);
unset($_REQUEST['~file_name~_edit_id']);
if($edit_id) {
$edit_id = format_int($_REQUEST['~file_name~_edit_id']);
unset($_REQUEST['~file_name~_edit_id']);
if($edit_id) {