Dotclear


Ignore:
Timestamp:
05/27/10 08:25:27 (14 years ago)
Author:
bruno
Message:

Sanitized versions checking

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/gallery/trunk/gal.php

    r2264 r2272  
    3232$post_status = $core->auth->getInfo('user_post_status'); 
    3333$post_selected = false; 
    34 if (!version_compare(DC_VERSION,'2.2alpha','>=')) { 
     34if (version_compare(DC_VERSION,'2.2-alpha','>=')) { 
     35     $post_open_comment = $core->blog->settings->system->allow_comments; 
     36     $post_open_tb = $core->blog->settings->system->allow_trackbacks; 
     37} else { 
    3538     $post_open_comment = $core->blog->settings->allow_comments; 
    3639     $post_open_tb = $core->blog->settings->allow_trackbacks; 
    37 } else { 
    38      $post_open_comment = $core->blog->settings->system->allow_comments; 
    39      $post_open_tb = $core->blog->settings->system->allow_trackbacks; 
    4040} 
    4141 
Note: See TracChangeset for help on using the changeset viewer.

Sites map