simplyFavicon/_prepend.php

20 lines
497 B
PHP
Raw Normal View History

2021-08-16 20:36:26 +00:00
<?php
2021-09-02 21:01:31 +00:00
/**
* @brief simplyFavicon, a plugin for Dotclear 2
2021-11-06 01:23:40 +00:00
*
2021-09-02 21:01:31 +00:00
* @package Dotclear
* @subpackage Plugin
2021-11-06 01:23:40 +00:00
*
2021-09-02 21:01:31 +00:00
* @author Jean-Christian Denis
2021-11-06 01:23:40 +00:00
*
2021-09-02 21:01:31 +00:00
* @copyright Jean-Christian Denis
* @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
*/
2021-11-06 01:23:40 +00:00
if (!defined('DC_RC_PATH')) {
2021-08-19 21:33:19 +00:00
return;
2021-08-16 21:44:38 +00:00
}
2021-08-16 20:36:26 +00:00
2022-11-14 22:02:42 +00:00
Clearbricks::lib()->autoload(['publicSimplyFavicon' => __DIR__ . '/_public.php']);
2021-08-16 20:36:26 +00:00
2022-11-14 22:02:42 +00:00
dcCore::app()->url->register('simplyFavicon', 'favicon', '^favicon.(.*?)$', ['publicSimplyFavicon', 'simplyFaviconUrl']);