<?php

/**
 * @file
 * @brief       The plugin dcProxyV1 definition
 * @ingroup     dcProxyV1
 *
 * @defgroup    dcProxyV1 Plugin dcProxyV1.
 *
 * dcProxyV1, Cope with old core classes (< 2.26).
 *
 * @package     Dotclear
 *
 * @copyright   Olivier Meunier & Association Dotclear
 * @copyright   AGPL-3.0
 */
if (isset($this) && is_object($this) && method_exists($this, 'registerModule') && isset($this->id) && is_string($this->id)) {
    $this->registerModule(
        'dcProxyV1',
        'Cope with old core classes (< 2.26)',
        'Franck Paul',
        '1.0',
        [
            'permissions' => 'My', // bypass permissions
            'type'        => 'plugin',
            'priority'    => 0,    // No plugins/themes loaded before this one
        ]
    );
}
