1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-07 07:06:30 +02:00

Upload shortcode return type fix, minor UI problem

This commit is contained in:
secretr
2010-05-11 10:35:55 +00:00
parent 9a1e36f517
commit ff84e0f73c

View File

@@ -130,7 +130,7 @@ function uploadfile_shortcode($parm)
{ {
$emessage->addStack($finfo['message'], 'upload_shortcode', $finfo['error'] ? E_MESSAGE_ERROR : E_MESSAGE_SUCCESS); $emessage->addStack($finfo['message'], 'upload_shortcode', $finfo['error'] ? E_MESSAGE_ERROR : E_MESSAGE_SUCCESS);
} }
return($parms['return_type'] == 'message' ? $emessage->render('upload_shortcode') : ''); if($parms['return_type'] == 'message') return $emessage->render('upload_shortcode');
} }
return($parms['return_type'] == 'result' ? $uploaded : ''); return($parms['return_type'] == 'result' ? $uploaded : '');
} }
@@ -151,8 +151,8 @@ function uploadfile_shortcode($parm)
<div id='{$parms['up_row']}' class='nowrap'> <div id='{$parms['up_row']}' class='nowrap'>
<input class='tbox file' type='file' name='{$name}' /> <input class='tbox file' type='file' name='{$name}' />
</div> </div>
<div class='field-help'>Upload to: <strong>".str_replace('../', '', $path)."</strong></div>
</div> </div>
<div class='field-help'>Upload to: <strong>".str_replace('../', '', $path)."</strong></div>
</div> </div>
<!-- End Upload Shortcode --> <!-- End Upload Shortcode -->
"; ";