Favicon per project

Post about your customizations to share with others.

Moderators: Developer, Contributor

Post Reply
MaKARON
Posts: 13
Joined: 12 Dec 2005, 12:02
Location: Olkusz / Poland
Contact:

Favicon per project

Post by MaKARON »

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)

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" />';
>
angel
Posts: 4
Joined: 28 Feb 2013, 12:35

Re: Favicon per project

Post by angel »

r u sure?
Post Reply