Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
wfpl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e057305
)
metaform: only require_once(email.php) if needed
author
Jason Woofenden
<jason@jasonwoof.com>
Wed, 18 Feb 2015 20:11:02 +0000
(15:11 -0500)
committer
Jason Woofenden
<jason@jasonwoof.com>
Wed, 18 Feb 2015 20:11:02 +0000
(15:11 -0500)
metaform/template.php
patch
|
blob
|
history
diff --git
a/metaform/template.php
b/metaform/template.php
index
759adb9
..
ac78d06
100644
(file)
--- a/
metaform/template.php
+++ b/
metaform/template.php
@@
-32,8
+32,8
@@
$GLOBALS['~name~_thumb_max_height'] = '70';
$GLOBALS['~name~_file_name'] = uniqid() . getmypid() . '.jpg'; # comment this out to use uploader's filename
~}~~}~
$GLOBALS['~name~_file_name'] = uniqid() . getmypid() . '.jpg'; # comment this out to use uploader's filename
~}~~}~
-require_once(__DIR__.'/'.'code/wfpl/format.php');
-require_once(__DIR__.'/'.'code/wfpl/email.php');~uploads_include {~
+require_once(__DIR__.'/'.'code/wfpl/format.php');~opt_email {~
+require_once(__DIR__.'/'.'code/wfpl/email.php');~}~~uploads_include {~
require_once(__DIR__.'/'.'code/wfpl/upload.php');~}~
$GLOBALS['~file_name~_field_to_caption'] = array(~name_to_caption {~
require_once(__DIR__.'/'.'code/wfpl/upload.php');~}~
$GLOBALS['~file_name~_field_to_caption'] = array(~name_to_caption {~