Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Favicon support #7

Closed
jeroenrnl opened this Issue Jul 16, 2012 · 0 comments

Comments

Projects
None yet
1 participant
Owner

jeroenrnl commented Jul 16, 2012

@tonin created a patch to add favicon support:

diff -Naur php/config.inc.php new/config.inc.php
--- php/config.inc.php  2008-06-03 12:49:04.000000000 +0200
+++ new/config.inc.php  2008-06-07 14:44:25.103575495 +0200
@@ -28,6 +28,9 @@
     define('CSS_SHEET', 'css.php');
     define('ICONSET', 'default');

+    // Favorite's icon
+    define('FAVICON', 'photos.ico');
+
     define('USE_IMAGE_SERVICE', 1);
     define('IMAGE_DIR', "/data/images/");
     // Only needed when imaga service is off:
diff -Naur php/header.inc.php new/header.inc.php
--- php/header.inc.php  2008-05-26 15:17:48.000000000 +0200
+++ new/header.inc.php  2008-06-07 14:42:11.365613078 +0200
@@ -21,6 +21,11 @@
 ?>
 <link type="text/css" rel="stylesheet" href="<?php echo CSS_SHEET ?>">
 <?php
+    if(FAVICON) {
+?>
+<link rel="shortcut icon" type="image/x-icon" href="<?php echo FAVICON ?>">
+<?php
+    }
     if(JAVASCRIPT) {
 ?>
 <script type="text/javascript" src="js/util.js"></script>

@ghost ghost assigned jeroenrnl Jul 16, 2012

@jeroenrnl jeroenrnl closed this in 9a9f69b Dec 27, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment