Last modified: 2013-02-15 09:21:38 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 45032 - mw.config: wgIsArticle should be true when editing an existing article
mw.config: wgIsArticle should be true when editing an existing article
Status: RESOLVED WONTFIX
Product: MediaWiki
Classification: Unclassified
JavaScript (Other open bugs)
unspecified
All All
: Low minor (vote)
: ---
Assigned To: Nobody - You can work on this!
: javascript
Depends on: javascript
Blocks:
  Show dependency treegraph
 
Reported: 2013-02-15 01:51 UTC by Danny B.
Modified: 2013-02-15 09:21 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Danny B. 2013-02-15 01:51:18 UTC
wgIsArticle set to false on articles when wgAction = edit/submit

Should be true, because no matter what action is being done, it's being done with the article.

Maybe actions done via special pages, such as move or delete might be omitted, but not others.
Comment 1 Krinkle 2013-02-15 09:21:38 UTC
wgIsArticle doesn't refer to whether page is a wiki page. It refers to whether we are viewing a wiki page

Basically a combination of wgNamespaceId >= 0 && wgAction == view.

When viewing an existing wiki page:
* wgNamespaceId = 0
* wgArticleId = 2
* wgTitle = Sandbox
* wgCurRevisionId = 2
* wgAction = view
* wgIsArticle = true

When editing a wiki page:

* wgNamespaceId = 0
* wgArticleId = 2
* wgTitle = Sandbox
* wgCurRevisionId = 2
* wgAction = edit
* wgIsArticle = false

I'm not sure in what scenario you are that wgIsArticle is giving an unexpected value, but I guess one the above mentioned variables is what you are looking for instead.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links