Page MenuHomePhabricator

move js-var dataCacheTime
Closed, ResolvedPublic

Description

In QueryPage.php the javascript variable "dataCacheTime" is added to the special page. Move the variable to the other variable in Output, because there is no need for a extra script-tag. Thanks.


Version: unspecified
Severity: enhancement

Details

Reference
bz23844

Event Timeline

bzimport raised the priority of this task from to Lowest.Nov 21 2014, 11:10 PM
bzimport set Reference to bz23844.
bzimport added a subscriber: Unknown Object (MLST).

There's not really a good place to put it; the classic 'js vars' block is global (Skin::makeGlobalVariablesScript) and awkward to extend internally, and there don't seem to be other querypage-specific script areas to merge it into.

Since the inline <script> doesn't appear to harm anything either, it's probably not worth worrying about at this stage. If interfaces on OutputPage change in future in a way that would make this super-easy to move into a nice big block, then reopen/implement.

Is this thing actually used anywhere? I can't find any uses in trunk or extensions or searching enwiki. I would just be inclined to remove it.