Dotclear

source: admin/posts_actions.php @ 3874:ab8368569446

Revision 3874:ab8368569446, 841 bytes checked in by franck <carnet.franck.paul@…>, 7 years ago (diff)

short notation for array (array() → [])

RevLine 
[0]1<?php
[3731]2/**
3 * @package Dotclear
4 * @subpackage Backend
5 *
6 * @copyright Olivier Meunier & Association Dotclear
7 * @copyright GPL-2.0-only
8 *
9 * @deprecated It is only used for plugins compatibility
10 */
[0]11
[3730]12/* ### THIS FILE IS DEPRECATED                     ### */
[1796]13/* ### IT IS ONLY USED FOR PLUGINS COMPATIBILITY ### */
14
[3730]15require dirname(__FILE__) . '/../inc/admin/prepend.php';
[0]16
17dcPage::check('usage,contentadmin');
18
[2243]19if (isset($_REQUEST['redir'])) {
[3730]20    $u   = explode('?', $_REQUEST['redir']);
21    $uri = $u[0];
22    if (isset($u[1])) {
23        parse_str($u[1], $args);
24    }
25    $args['redir'] = $_REQUEST['redir'];
[2243]26} else {
[3730]27    $uri  = $core->adminurl->get("admin.posts");
[3874]28    $args = [];
[2243]29}
[1399]30
[3730]31$posts_actions_page = new dcPostsActionsPage($core, $uri, $args);
[2243]32$posts_actions_page->setEnableRedirSelection(false);
[1806]33$posts_actions_page->process();
Note: See TracBrowser for help on using the repository browser.

Sites map