Skip to content
This repository has been archived by the owner on Feb 4, 2021. It is now read-only.

don't display 'review' when page is deleted #200

Open
wikipedia-mabdul opened this issue Oct 12, 2013 · 3 comments
Open

don't display 'review' when page is deleted #200

wikipedia-mabdul opened this issue Oct 12, 2013 · 3 comments

Comments

@wikipedia-mabdul
Copy link
Member

there is a 'review' link at https://en.wikipedia.org/w/index.php?title=Wikipedia_talk:Articles_for_creation/Indubious&action=edit&redlink=1 and the script shows only

Loading the Article for creation helper script...
@Technical-13
Copy link
Contributor

Looking at the source for that page... "wgCurRevisionId":0,"wgRevisionId":0,"wgArticleId":0,"wgIsArticle":false,"wgIsRedirect":false,"wgAction":"edit", is in the mw.config. So, if(mw.config.get( 'wgArticleId' ) === 0){ return; } or some such should do it.

@theopolisme
Copy link
Contributor

[[WP:Competence is required]]. If users hit Review on an empty page, what do they expect to happen...? :p

@theopolisme
Copy link
Contributor

But yeah, this makes sense. So implemented.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants