Favicon improvements (ApMuthu).
authorJanusz Dobrowolski <janusz@frontaccouting.eu>
Thu, 31 Jan 2013 10:02:04 +0000 (11:02 +0100)
committerJanusz Dobrowolski <janusz@frontaccouting.eu>
Thu, 31 Jan 2013 10:02:04 +0000 (11:02 +0100)
access/login.php
includes/page/header.inc
themes/default/images/favicon.ico [new file with mode: 0644]
themes/default/images/favicon.png [deleted file]

index 00b74403bfdf3813d29b6cbcb58480a35832d4bf..fbabe47ef317ca7ce1c3efa48e6223fba2df687a 100644 (file)
@@ -53,10 +53,10 @@ function defaultCompany()
 
        echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n";
        echo "<html dir='$rtl' >\n";
-       echo "<head><title>$title</title>\n";
+       echo "<head profile=\"http://www.w3.org/2005/10/profile\"><title>$title</title>\n";
        echo "<meta http-equiv='Content-type' content='text/html; charset=$encoding' />\n";
        echo "<link href='$path_to_root/themes/$def_theme/default.css' rel='stylesheet' type='text/css'> \n";
-       echo "<link href='$path_to_root/themes/default/images/favicon.png' rel='icon' type='image/png'> \n";
+       echo "<link href='$path_to_root/themes/default/images/favicon.ico' rel='icon' type='image/x-icon'> \n";
        send_scripts();
        if (!$login_timeout)
        {
index 87d0ee870c751ad1ba6045a90ff32a2190e1e5f2..1f63ef9a6641b59cfcaf3b916a8eff50065b0d80 100644 (file)
@@ -121,9 +121,10 @@ function page_header($title, $no_menu=false, $is_index=false, $onload="", $js=""
        }
        echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n";
        echo "<html dir='" . $_SESSION['language']->dir . "' >\n";
-       echo "<head><title>$title</title>";
+       echo "<head profile=\"http://www.w3.org/2005/10/profile\"><title>$title</title>";
        echo "<meta http-equiv='Content-type' content='text/html; charset=$encoding'>";
        echo "<link href='$path_to_root/themes/$theme/default.css' rel='stylesheet' type='text/css'> \n";
+       echo "<link href='$path_to_root/themes/default/images/favicon.ico' rel='icon' type='image/x-icon'> \n";
        if ($css)
                echo '<link href="'.$css.'" rel="stylesheet" type="text/css">';
 
diff --git a/themes/default/images/favicon.ico b/themes/default/images/favicon.ico
new file mode 100644 (file)
index 0000000..3cee07f
Binary files /dev/null and b/themes/default/images/favicon.ico differ
diff --git a/themes/default/images/favicon.png b/themes/default/images/favicon.png
deleted file mode 100644 (file)
index 26e232c..0000000
Binary files a/themes/default/images/favicon.png and /dev/null differ