Die if reviewing a nonexistent page

This commit is contained in:
theopolisme 2014-02-26 21:40:44 -06:00
parent c856667023
commit 5d588b9923

View File

@ -3,7 +3,10 @@
var $afchLaunchLink, $afch, $afchWrapper,
afchPage, afchSubmission, afchViews, afchViewer;
AFCH.log( 'submissions.js executing...' );
// Die if reviewing a nonexistent page
if ( mw.config.get( 'wgArticleId' ) === 0 ) {
return;
}
/**
* Represents an AfC submission -- its status as well as comments.