Changeset 2726
- Timestamp:
- 07/08/08 05:52:25 (19 months ago)
- Location:
- branches/release-41
- Files:
-
- 2 modified
-
lib/MT/CMS/Asset.pm (modified) (2 diffs)
-
tmpl/cms/dialog/asset_options.tmpl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/release-41/lib/MT/CMS/Asset.pm
r1823 r2726 230 230 my $text = _process_post_upload( $app ); 231 231 return unless defined $text; 232 $app->load_tmpl(232 my $tmpl = $app->load_tmpl( 233 233 'dialog/asset_insert.tmpl', 234 234 { 235 235 236 upload_html => $text || '', 236 237 edit_field => scalar $app->param('edit_field') || '', 237 238 }, 238 239 ); 240 my $ctx = $tmpl->context; 241 my $id = $app->param('id') 242 or return $app->errtrans("Invalid request."); 243 my $asset = MT::Asset->load( $id ); 244 $ctx->stash('asset', $asset); 245 return $tmpl; 239 246 } 240 247 … … 336 343 my $perms = $app->permissions 337 344 or return $app->errtrans('No permissions'); 345 346 # caller wants asset without any option step, so insert immediately 347 return insert($app) if $app->param('asset_select'); 338 348 339 349 my $param = { -
branches/release-41/tmpl/cms/dialog/asset_options.tmpl
r2270 r2726 87 87 88 88 <mt:unless name="direct_asset_insert"> 89 <!-- <__trans phrase="The file named '[_1]' has been uploaded. Size: [quant,_2,byte,bytes]." params="<mt:var name="fname" escape="html">%%<mt:var name="bytes">"> -->90 </mt:unless>91 92 <mt:unless name="direct_asset_insert">93 89 <div> 94 90 <div id="asset_details">
