* (bug 12668) Support for custom iPhone bookmark icon via $wgAppleTouchIcon
authorBrion Vibber <brion@users.mediawiki.org>
Sat, 19 Jan 2008 05:39:41 +0000 (05:39 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sat, 19 Jan 2008 05:39:41 +0000 (05:39 +0000)
RELEASE-NOTES
includes/DefaultSettings.php
includes/Skin.php

index 782c03d..2c19b19 100644 (file)
@@ -134,6 +134,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (bug 18585) Added a bunch of parameters to the revertpage message
 * Support redirects in image namespace
 * (bug 10049) Prefix index search and namespaces in Special:Withoutinterwiki
+* (bug 12668) Support for custom iPhone bookmark icon via $wgAppleTouchIcon
+
 
 === Bug fixes in 1.12 ===
 
index efea489..e39f20b 100644 (file)
@@ -157,6 +157,7 @@ $wgUploadDirectory  = false; /// defaults to "{$IP}/images"
 $wgHashedUploadDirectory       = true;
 $wgLogo                                = false; /// defaults to "{$wgStylePath}/common/images/wiki.png"
 $wgFavicon                     = '/favicon.ico';
+$wgAppleTouchIcon   = false; /// This one'll actually default to off. For iPhone and iPod Touch web app bookmarks
 $wgMathPath         = false; /// defaults to "{$wgUploadPath}/math"
 $wgMathDirectory    = false; /// defaults to "{$wgUploadDirectory}/math"
 $wgTmpDirectory     = false; /// defaults to "{$wgUploadDirectory}/tmp"
index e693f92..fe4bb93 100644 (file)
@@ -153,13 +153,17 @@ class Skin extends Linker {
        }
 
        function initPage( &$out ) {
-               global $wgFavicon, $wgScriptPath, $wgSitename, $wgContLang;
+               global $wgFavicon, $wgAppleTouchIcon, $wgScriptPath, $wgSitename, $wgContLang;
 
                wfProfileIn( __METHOD__ );
 
                if( false !== $wgFavicon ) {
                        $out->addLink( array( 'rel' => 'shortcut icon', 'href' => $wgFavicon ) );
                }
+               
+               if( false !== $wgAppleTouchIcon ) {
+                       $out->addLink( array( 'rel' => 'apple-touch-icon', 'href' => $wgAppleTouchIcon ) );
+               }               
 
                $code = $wgContLang->getCode();
                $name = $wgContLang->getLanguageName( $code );