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

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T47032, the corresponding Phabricator task for complete and up-to-date bug report information.
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