Changeset 943

Show
Ignore:
Timestamp:
12/19/06 00:01:19 (2 years ago)
Author:
gboggs
Message:

Added IS_IMAGE based on the filter_val=setting sent to dialog_list_assets. BugId: 45944

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/wheeljack/lib/MT/App/CMS.pm

    r939 r943  
    992992                edit_field => $app->param('edit_field') || '', 
    993993                dialog_view => $app->param('dialog_view') ? 1 : 0, 
     994                is_image => $app->param('filter_val') eq 'image' ? 1 : 0, 
    994995            ) : ()), 
    995996            class_loop => \@class_loop, 
     
    54935494sub asset_insert { 
    54945495    my $app = shift; 
    5495  
    5496     # Just insert text if there are arguments, unless one is 
    5497     # 'is_image' otherwise we are definitely uploading. 
    54985496    my $text = $app->_process_post_upload(); 
    54995497    return unless defined $text; 
    5500  
    55015498    $app->build_page('asset_insert.tmpl', { 
    55025499            upload_html => $text || '',