r88395 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r88394‎ | r88395 | r88396 >
Date:22:10, 18 May 2011
Author:krinkle
Status:ok
Tags:
Comment:
* Remove commented-out debug call (FU r88143)
* Update comment to reflect changes to function (FU r87208)
Modified paths:
  • /trunk/phase3/resources/mediawiki.util/mediawiki.util.js (modified) (history)
  • /trunk/phase3/resources/mediawiki/mediawiki.js (modified) (history)

Diff [purge]

Index: trunk/phase3/resources/mediawiki.util/mediawiki.util.js
@@ -191,10 +191,10 @@
192192 },
193193
194194 /**
195 - * Get the full URL to a page name
 195+ * Get the link to a page name (relative to wgServer)
196196 *
197 - * @param str Page name to link to
198 - * @return Full URL for page with name of 'str' or false on error
 197+ * @param str Page name to get the link for.
 198+ * @return string Location for a page with name of 'str' or boolean false on error.
199199 */
200200 'wikiGetlink' : function( str ) {
201201
Index: trunk/phase3/resources/mediawiki/mediawiki.js
@@ -291,7 +291,6 @@
292292 if ( $marker ) {
293293 return $marker;
294294 } else {
295 - //mw.log( 'getMarker> Caching marker' );
296295 $marker = $( 'meta[name="ResourceLoaderDynamicStyles"]' );
297296 if ( $marker.length ) {
298297 return $marker;

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r87208(bug 27916) Don't prefix wgServer in mw.util.wikiGetlink...krinkle19:20, 1 May 2011
r88143(bug 27073) Lazy init the style marker and insert if not available (ie. when ...krinkle10:33, 15 May 2011

Status & tagging log