Changeset 1822

Show
Ignore:
Timestamp:
04/09/08 08:06:22 (8 months ago)
Author:
fumiakiy
Message:

Added Scalar::Util in the list of optional modules in mt-check.cgi. Check and hide appropriately if the required module for Async Job Queue feature is not available. BugId:77208

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/release-34/lib/MT/App/Wizard.pm

    r1678 r1822  
    135135                link => 'http://search.cpan.org/dist/Scalar-List-Utils', 
    136136                label => 'List::Util is optional; It is needed if you want to use the Publish Queue feature.', 
     137            }, 
     138            'Scalar::Util' => { 
     139                link => 'http://search.cpan.org/dist/Scalar-List-Utils', 
     140                label => 'Scalar::Util is optional; It is needed if you want to use the Publish Queue feature.', 
    137141            }, 
    138142            'Image::Magick' => { 
  • branches/release-34/lib/MT/CMS/Blog.pm

    r1798 r1822  
    232232                    $param->{ 'archive_type_' . $at } = 1; 
    233233                } 
     234            } 
     235            eval "require List::Util; require Scalar::Util;"; 
     236            unless ($@) { 
     237                $param->{can_use_publish_queue} = 1; 
    234238            } 
    235239            if ( $blog->publish_queue ) { 
  • branches/release-34/mt-check.cgi.pre

    r1251 r1822  
    308308 
    309309    [ 'File::Temp', 0, 0, translate('File::Temp is optional; It is needed if you would like to be able to overwrite existing files when you upload.') ], 
     310 
     311    [ 'Scalar::Util', 0, 1, translate('Scalar::Util is optional; It is needed if you want to use the Publish Queue feature.')], 
    310312 
    311313    [ 'List::Util', 0, 1, translate('List::Util is optional; It is needed if you want to use the Publish Queue feature.')], 
  • branches/release-34/tmpl/cms/cfg_archives.tmpl

    r1683 r1822  
    275275</mt:if> 
    276276 
     277<mt:if name="can_use_publish_queue"> 
    277278<fieldset> 
    278279    <h3><__trans phrase="Asynchronous Job Queue"></h3> 
     
    292293 
    293294</fieldset> 
     295</mt:if> 
    294296 
    295297<fieldset>