summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2013-08-07 23:05:28 +0200
committerFlorian Pritz <bluewind@xinu.at>2013-08-07 23:05:28 +0200
commitcfef221af47d45c4072fc2491958d02deb86862e (patch)
tree58340885e7dedbce733323f2f66776ae55aaa9a1
parent35ac6214969154e27eecbd7b9ee92c45680a071d (diff)
Add favicon support
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rw-r--r--application/views/header.php6
-rw-r--r--data/local/.gitignore1
-rw-r--r--data/local/examples/favicon.png0
3 files changed, 6 insertions, 1 deletions
diff --git a/application/views/header.php b/application/views/header.php
index 42d841a8b..683fc7727 100644
--- a/application/views/header.php
+++ b/application/views/header.php
@@ -20,7 +20,11 @@ if (is_cli_client() && !isset($force_full_html)) {
if (file_exists(FCPATH."data/local/style.css")) {
echo '<link href="'.link_with_mtime("/data/local/style.css").'" rel="stylesheet">';
}
-?>
+
+ if (file_exists(FCPATH."data/local/favicon.png")) {
+ echo '<link href="'.link_with_mtime("/data/local/favicon.png").'" rel="shortcut icon">';
+ }
+ ?>
</head>
<body>
diff --git a/data/local/.gitignore b/data/local/.gitignore
index d367a4a5c..114c1450b 100644
--- a/data/local/.gitignore
+++ b/data/local/.gitignore
@@ -1 +1,2 @@
contact-info.php
+favicon.png
diff --git a/data/local/examples/favicon.png b/data/local/examples/favicon.png
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/data/local/examples/favicon.png