Dotclear

Changeset 2275


Ignore:
Timestamp:
05/28/10 11:45:47 (14 years ago)
Author:
JcDenis
Message:

postExpired 0.2.1:

  • Fixed DC 2.1.7 settings bugs
Location:
plugins/postExpired
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • plugins/postExpired/_define.php

    r2187 r2275  
    1717     /* Description*/         "Change entries options at a given date", 
    1818     /* Author */             "JC Denis", 
    19      /* Version */            '0.2', 
     19     /* Version */            '0.2.1', 
    2020     /* Permissions */        'contentadmin' 
    2121); 
    22      /* date */          #20100413 
     22     /* date */          #20100528 
    2323?> 
  • plugins/postExpired/_public.php

    r2187 r2275  
    194194               $res = sprintf($f,"dt::dt2str('".$format."',\$_ctx->posts->postExpiredDate())"); 
    195195          else  
    196                $res = sprintf($f,"dt::dt2str((!version_compare(DC_VERSION,'2.1.6','<=') ? \$core->blog->settings->system->date_format : \$core->blog->settings->date_format),\$_ctx->posts->postExpiredDate())"); 
     196               $res = sprintf($f,"dt::dt2str((version_compare(DC_VERSION,'2.2-alpha','>=') ? \$core->blog->settings->system->date_format : \$core->blog->settings->date_format),\$_ctx->posts->postExpiredDate())"); 
    197197 
    198198          return '<?php if (null !== $_ctx->posts->postExpiredDate()) { echo '.$res.'; } ?>'; 
     
    201201     public static function EntryExpiredTime($attr) 
    202202     { 
    203           return '<?php if (null !== $_ctx->posts->postExpiredDate()) { echo '.sprintf($GLOBALS['core']->tpl->getFilters($attr),"dt::dt2str(".(!empty($attr['format']) ? "'".addslashes($attr['format'])."'" : "(!version_compare(DC_VERSION,'2.1.6','<=') ? \$core->blog->settings->system->time_format : \$core->blog->settings->time_format)").",\$_ctx->posts->postExpiredDate())").'; } ?>'; 
     203          return '<?php if (null !== $_ctx->posts->postExpiredDate()) { echo '.sprintf($GLOBALS['core']->tpl->getFilters($attr),"dt::dt2str(".(!empty($attr['format']) ? "'".addslashes($attr['format'])."'" : "(version_compare(DC_VERSION,'2.2-alpha','>=') ? \$core->blog->settings->system->time_format : \$core->blog->settings->time_format)").",\$_ctx->posts->postExpiredDate())").'; } ?>'; 
    204204     } 
    205205 
  • plugins/postExpired/release.txt

    r2187 r2275  
     10.2.1 20100528 
     2 * Fixed DC 2.1.7 settings bugs 
     3 
    140.2 20100414 
    25 * Added actions choice (status,category,selected) 
Note: See TracChangeset for help on using the changeset viewer.

Sites map