X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fcore.php;h=b7def03ef0cf9b7554fff4bb7b81ae343dc7e850;hb=d655dba1a05100bdd309200eb20409e848abf98c;hp=27f0c3612acce2bcb97054bf8e83d8ed5e091716;hpb=94c63478e2e66e968a61daedbafc5fbde9442102;p=platal.git diff --git a/modules/core.php b/modules/core.php index 27f0c36..b7def03 100644 --- a/modules/core.php +++ b/modules/core.php @@ -29,6 +29,7 @@ class CoreModule extends PLModule 'purge_cache' => $this->make_hook('purge_cache', AUTH_COOKIE, 'admin'), 'valid.html' => $this->make_hook('valid', AUTH_PUBLIC), + 'favicon.ico' => $this->make_hook('favicon', AUTH_PUBLIC), ); } @@ -50,6 +51,14 @@ class CoreModule extends PLModule $page->changeTpl('404.tpl'); } + function handler_favicon(&$page) + { + $data = file_get_contents(dirname(__FILE__).'/../htdocs/images/favicon.png'); + header('Content-Type: image/png'); + echo $data; + exit; + } + function handler_purge_cache(&$page) { require_once 'wiki.inc.php';