https://bugzilla.wikimedia.org/show_bug.cgi?id=51594
Web browser: ---
Bug ID: 51594
Summary: Add wgRevisionId for revision of displayed page or
diff
Product: MediaWiki
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: JavaScript
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected]
Classification: Unclassified
Mobile Platform: ---
There is a wgCurRevisionId field currently, which as noted on the doc page is,
"The top revision ID of the currently viewed page at the time the page was
served"
This is implemented with OutputPage->getWikiPage()->getLatest() (page_latest).
However, in some cases, it is necessary to have the effective revision id. For
a simple historical version (oldid=123), this would be the displayed version.
For a diff (oldid=123&diff=next, oldid=123&diff=987, etc.), if would be the
revision denoted by the diff. This should be available as wgRevisionId.
This will allow JavaScript to look things up by the actual revision ID, or log
it when necessary.
--
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l