Adds favicon and uses define() for a constant

This commit is contained in:
Christophe HENRY 2022-08-02 08:43:00 +02:00
parent c36e9347a6
commit ef149dcad8
2 changed files with 1 additions and 2 deletions

BIN
favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

View File

@ -5,7 +5,7 @@ namespace htmgem\html;
mb_internal_encoding("UTF-8");
mb_regex_encoding("UTF-8");
$txt_icon = "H͜͡m ";
define("TXT_ICON", "H͜͡m ");
function getHeader(\htmgem\GemtextTranslate_html $gt_html) {
$css = $gt_html->getCss();
@ -36,7 +36,6 @@ function array_key_last_slice($array) {
* @param $pageLink if not null, means no URL rewritting
*/
function getMenu(string $scheme, string $domain, string $path, string $prefix=null) {
global $txt_icon;
$links = \htmgem\split_path_links($path, $prefix);
// Removes the last part, as it won't hold a link