r95595 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r95594‎ | r95595 | r95596 >
Date:09:11, 27 August 2011
Author:santhosh
Status:ok
Tags:
Comment:
Fix Bug #30593 : WebFonts set cookies for different paths
Use correct path for the cookie value when reset.
Modified paths:
  • /trunk/extensions/WebFonts/js/webfonts.js (modified) (history)

Diff [purge]

Index: trunk/extensions/WebFonts/js/webfonts.js
@@ -63,7 +63,7 @@
6464 //reset the font size from old configuration
6565 $("body").css('font-size', $.webfonts.oldconfig["font-size"]);
6666 //remove the cookie
67 - $.cookie( 'webfonts-font', 'none' );
 67+ $.cookie( 'webfonts-font', 'none', { 'path': '/', 'expires': 30 } );
6868 },
6969
7070 /**

Status & tagging log