MediaWiki:Common.js: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
m tolgo funzione duplicata
funzione deprecata
Riga 458:
* paramName : the name of the parameter to extract
*/
//DEPRECATO
function getURLParamValue( paramNameparam, url) {
{
return mw.util.getParamValue(param, url);
if (typeof (url) == 'undefined' || url === null) url = document.___location.href;
var cmdRe=RegExp( '[&?]' + paramName + '=([^&#]*)' ); // Stop at hash
var m=cmdRe.exec(url);
if (m && m.length > 1) return decodeURIComponent(m[1]);
return null;
}