r82250 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r82249‎ | r82250 | r82251 >
Date:14:52, 16 February 2011
Author:catrope
Status:ok
Tags:
Comment:
WikiEditor: Use wgExtensionAssetsPath instead of wgScriptPath + '/extensions'
Modified paths:
  • /trunk/extensions/WikiEditor/modules/jquery.wikiEditor.iframe.js (modified) (history)
  • /trunk/extensions/WikiEditor/modules/jquery.wikiEditor.js (modified) (history)

Diff [purge]

Index: trunk/extensions/WikiEditor/modules/jquery.wikiEditor.js
@@ -75,7 +75,7 @@
7676 * Path to images - this is a bit messy, and it would need to change if this code (and images) gets moved into the
7777 * core - or anywhere for that matter...
7878 */
79 - 'imgPath' : wgScriptPath + '/extensions/WikiEditor/modules/images/',
 79+ 'imgPath' : wgExtensionAssetsPath + '/WikiEditor/modules/images/',
8080 /**
8181 * Checks the current browser against the browsers object to determine if the browser has been black-listed or not.
8282 * Because these rules are often very complex, the object contains configurable operators and can check against
Index: trunk/extensions/WikiEditor/modules/jquery.wikiEditor.iframe.js
@@ -607,7 +607,7 @@
608608 'frameBorder': 0,
609609 'border': 0,
610610 'tabindex': 1,
611 - 'src': wgScriptPath + '/extensions/WikiEditor/modules/jquery.wikiEditor.html?' +
 611+ 'src': wgExtensionAssetsPath + '/WikiEditor/modules/jquery.wikiEditor.html?' +
612612 'instance=' + context.instance + '&ts=' + ( new Date() ).getTime() + '&is=content',
613613 'id': 'wikiEditor-iframe-' + context.instance
614614 } )

Follow-up revisions

RevisionCommit summaryAuthorDate
r822511.17wmf1: MFT r82250catrope14:53, 16 February 2011

Status & tagging log