Dotclear

Changeset 3140


Ignore:
Timestamp:
07/10/13 09:01:49 (10 years ago)
Author:
JcDenis
Message:

2013.07.10

  • Fixed action on multiple posts
Location:
plugins/postslistOptions
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • plugins/postslistOptions/_admin.php

    r2639 r3140  
    11<?php 
    22# -- BEGIN LICENSE BLOCK ---------------------------------- 
     3# 
    34# This file is part of postslistOptions, a plugin for Dotclear 2. 
    45#  
    5 # Copyright (c) 2009-2010 JC Denis and contributors 
    6 # jcdenis@gdwd.com 
     6# Copyright (c) 2009-2013 Jean-Christian Denis and contributors 
     7# contact@jcdenis.fr http://jcd.lv 
    78#  
    89# Licensed under the GPL version 2.0 license. 
    910# A copy of this license is available in LICENSE file or at 
    1011# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 
     12# 
    1113# -- END LICENSE BLOCK ------------------------------------ 
    1214 
    1315if (!defined('DC_CONTEXT_ADMIN')){return;} 
    1416 
    15 if ($core->auth->check('admin',$core->blog->id)) { 
    16      $core->addBehavior('adminPostsActionsCombo',array('behaviorsPostlistOptions','adminPostsActionsCombo')); 
    17      $core->addBehavior('adminPostsActionsContent',array('behaviorsPostlistOptions','adminPostsActionsContent')); 
    18      $core->addBehavior('adminPostsActions',array('behaviorsPostlistOptions','adminPostsActions')); 
    19 } 
     17if (!$core->auth->check('admin',$core->blog->id)) { return; } 
     18 
     19$core->addBehavior('adminPostsActionsCombo',array('behaviorsPostlistOptions','adminPostsActionsCombo')); 
     20$core->addBehavior('adminPostsActionsContent',array('behaviorsPostlistOptions','adminPostsActionsContent')); 
     21$core->addBehavior('adminPostsActions',array('behaviorsPostlistOptions','adminPostsActions')); 
    2022 
    2123class behaviorsPostlistOptions 
     
    9496                         break; 
    9597                    } 
    96                     if (!$core->error->flag()) { 
    97                          http::redirect($redir); 
    98                     } 
     98               } 
     99               if (!$core->error->flag()) { 
     100                    http::redirect($redir); 
    99101               } 
    100102          } 
  • plugins/postslistOptions/_define.php

    r2639 r3140  
    11<?php 
    22# -- BEGIN LICENSE BLOCK ---------------------------------- 
     3# 
    34# This file is part of postslistOptions, a plugin for Dotclear 2. 
    45#  
    5 # Copyright (c) 2009-2010 JC Denis and contributors 
    6 # jcdenis@gdwd.com 
     6# Copyright (c) 2009-2013 Jean-Christian Denis and contributors 
     7# contact@jcdenis.fr http://jcd.lv 
    78#  
    89# Licensed under the GPL version 2.0 license. 
    910# A copy of this license is available in LICENSE file or at 
    1011# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 
     12# 
    1113# -- END LICENSE BLOCK ------------------------------------ 
    1214 
     
    1719     /* Description*/         "Add some options on admin posts list", 
    1820     /* Author */             "JC Denis", 
    19      /* Version */            '0.1', 
     21     /* Version */            '2013.07.10', 
    2022     /* Permissions */        'admin' 
    2123); 
    22      /* date */          #20100910 
    2324?> 
  • plugins/postslistOptions/release.txt

    r2639 r3140  
    1 0.1 20100910 
     12013.07.10  
     2 * Fixed action on multiple posts 
     3 
     40.1 20100910  
    25 * First lab release (closes #557) 
Note: See TracChangeset for help on using the changeset viewer.

Sites map