<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>Horde is always including favicon from default theme</title> 
  <pubDate>Thu, 09 Apr 2026 21:49:32 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/9504</link> 
  <atom:link rel="self" type="application/rss+xml" title="Horde is always including favicon from default theme" href="https://bugs.horde.org/ticket/9504/rss" /> 
  <description>Horde is always including favicon from default theme</description> 
 
   
   
  <item> 
   <title>Digging the code, i think it has something to do with  Horde</title> 
   <description>Digging the code, i think it has something to do with  Horde_Themes_Cache::_get, and the &quot;if ($this-&gt;_app != &#039;horde&#039;) {&quot; part..
I don&#039;t understand the logic here 100% (so there&#039;s no patch), but my intuition says it has something to do with that..</description> 
   <pubDate>Tue, 11 Jan 2011 20:23:19 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9504#t61363</link> 
  </item> 
   
  <item> 
   <title>I don&#039;t see this.  e.g. In IMP, I copied over the favicon.ic</title> 
   <description>I don&#039;t see this.  e.g. In IMP, I copied over the favicon.ico file from default/graphics to themename/graphics and the favicon is now being served from themename/graphics.

Make sure you are not caching themes.</description> 
   <pubDate>Wed, 12 Jan 2011 09:03:35 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9504#t61367</link> 
  </item> 
   
  <item> 
   <title>Cache themes is false, and i also turned off any cache.
I h</title> 
   <description>Cache themes is false, and i also turned off any cache.
I have the silver theme defined, which has the new horde favicon, but on the Horde login screen (and everywhere else) i keep getting the default (old) favicon.
I already checked that the silver/graphics/favicon.png exists and is web-accessible, so the problem is not that either.

Following the script logic, when i get to 
Horde_Themes_Cache::get() i have $mask = 1010 (binary) that comes from (Horde_Themes_Cache::APP_DEFAULT | Horde_Themes_Cache::APP_THEME)..

Then this line $entry = $this-&gt;_get($item) is making $entry = 101, because the call to _get() finds the graphics/favicon.png for horde default theme (Horde_Themes_Cache::HORDE_DEFAULT) and for silver theme (Horde_Themes_Cache::HORDE_THEME), but then, it won&#039;t continue, because current app on login page is &#039;horde&#039;, which makes sense, because we already saw that favicon is present on horde silver theme...but then, the $entry 2nd and 4th bit will always be 0, so

getting back to Horde_Themes_Cache::get() we will find that &#039;$entry &amp;= $mask;&#039; is equal to 101 &amp; 1010 which will make $entry = 0, making it fail on all if sentences that follow..

Sorry to explain with code, but couldn&#039;t find a better way to explain how its working over here :-)</description> 
   <pubDate>Wed, 12 Jan 2011 09:48:51 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9504#t61372</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git for this ticket:

Bug #9504: M</title> 
   <description>Changes have been made in Git for this ticket:

Bug #9504: Mask might render all available options unavailable

http://git.horde.org/horde-git/-/commit/1444ec62c6688518002be1d935176a66447d6c7c</description> 
   <pubDate>Wed, 12 Jan 2011 19:32:31 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9504#t61388</link> 
  </item> 
   
  <item> 
   <title>This was only an issue in Horde itself, not the apps.  This </title> 
   <description>This was only an issue in Horde itself, not the apps.  This has been fixed.</description> 
   <pubDate>Wed, 12 Jan 2011 19:32:46 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9504#t61389</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
