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/item.php

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

Sites map