Content deleted Content added
Amorymeltzer (talk | contribs) m Remove legacy globals per phab:T72470 (via WP:JWB) |
m Maintenance: Fixing deprecated call to addPortletLink (mw:ResourceLoader/Migration_guide_(users)#addPortletLink) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 75:
}
if(mw.config.get('wgCanonicalSpecialPageName') == "Userrights" && mw.config.get('wgNamespaceNumber') == -1 && document.getElementById("username").value.length > 0) {
addlimenu(document.getElementById("p-cactions").getElementsByTagName("ul")[0], "add", "ca-addrights", "");
Line 113:
});
if(((mw.config.get('wgNamespaceNumber') == 2 || mw.config.get('wgNamespaceNumber') == 3) && !mw.config.get('wgTitle').split("/")[1]) || (mw.config.get('wgNamespaceNumber') == -1 && mw.config.get('wgCanonicalSpecialPageName') == "Contributions")) {
mw.util.addPortletLink("p-cactions", mw.config.get('wgScript') + "?title=Special:UserRights&user=" + (mw.config.get('wgCanonicalSpecialPageName') == "Contributions" ? document.title.split("User contributions for ")[1].split(" - Wikipedia, the free encyclopedia")[0] : mw.config.get('wgTitle')), "userrights", "ca-userrights");
}
});
|