Favicon per project
Posted: 28 Jul 2007, 07:05
Hello everybody
Very simple patch for mantis-1.1.0a4-CVS (but I think you can use it on every version of Mantis) - allow use diffrent favicon for every project.
To change favicon use: Manage -> Manage Configuration -> Set Configuration Option (TABLE)
Configuration Option: ico_link
Type: string
Value: (url to ico - can be relative to mantis root)
Very simple patch for mantis-1.1.0a4-CVS (but I think you can use it on every version of Mantis) - allow use diffrent favicon for every project.
To change favicon use: Manage -> Manage Configuration -> Set Configuration Option (TABLE)
Configuration Option: ico_link
Type: string
Value: (url to ico - can be relative to mantis root)
Code: Select all
Index: config_defaults_inc.php
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/config_defaults_inc.php,v
retrieving revision 1.347
diff -r1.347 config_defaults_inc.php
1866a1867,1870
>
> # The favicon link
> $g_ico_link = 'images/favicon.ico';
>
Index: core/html_api.php
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/core/html_api.php,v
retrieving revision 1.208
diff -r1.208 html_api.php
103c103,104
< echo '<link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon" />';
---
> echo '<link rel="shortcut icon" href="' . config_get( 'ico_link' ) . '" type="image/x-icon" />';
>