Dotclear

Changeset 1888:d55087172539


Ignore:
Timestamp:
08/26/13 11:24:30 (10 years ago)
Author:
Lepeltier kévin
Branch:
Ticket #1181
Children:
1889:03b338af9afe, 1890:4d31d3ae18fc
Message:

Ticket #1181 : via un controleurs qui appellerais posts_actions
Toujours apparement impossible sans modifier posts_actions

Location:
plugins/pages
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • plugins/pages/index.php

    r1179 r1888  
    1212if (!defined('DC_CONTEXT_ADMIN')) { return; } 
    1313 
    14 $act = (!empty($_REQUEST['act']) && $_REQUEST['act'] == 'page') ? 'page' : 'list'; 
     14$act = !empty($_REQUEST['act']) ? $_REQUEST['act'] : 'list'; 
    1515 
    1616 
    1717if ($act == 'page') { 
    1818     include dirname(__FILE__).'/page.php'; 
     19} else if ($act == 'actions') { 
     20     include dirname(__FILE__).'/pages_actions.php'; 
    1921} else { 
    2022     include dirname(__FILE__).'/list.php'; 
    2123} 
    22  
    23 ?> 
  • plugins/pages/list.php

    r1882 r1888  
    148148if ($core->auth->check('publish,contentadmin',$core->blog->id)) 
    149149{ 
    150      $combo_action[__('Reorder')] = 'reorder'; 
    151150     $combo_action[__('Publish')] = 'publish'; 
    152151     $combo_action[__('Unpublish')] = 'unpublish'; 
     
    197196     # Show pages 
    198197     $post_list->display($page,$nb_per_page, 
    199      '<form action="posts_actions.php" method="post" id="form-entries">'. 
     198     '<form action="plugin.php?p=pages&act=actions" method="post" id="form-entries">'. 
    200199      
    201200     '%s'. 
     
    209208     form::hidden(array('post_type'),'page'). 
    210209     form::hidden(array('redir'),html::escapeHTML($_SERVER['REQUEST_URI'])). 
     210     '</div>'. 
    211211     $core->formNonce(). 
    212      '</div>'. 
     212     '<br class="clear"/>'. 
     213     '<input type="submit" value="'.__('Save categories order').'" name="reorder" class="clear"/>'. 
    213214     '</form>'); 
    214215} 
Note: See TracChangeset for help on using the changeset viewer.

Sites map