Regenerate graphs even when user is not permitted to upload

Authored by Samwilson on Dec 18 2017, 2:52 AM.

Description

Regenerate graphs even when user is not permitted to upload

This adds a new feature whereby graph images can be regenerated
and uploaded to the wiki even when the user viewing them does
not have upload permission. This means that one need not grant
upload permission to users who just need to edit graphs (i.e. they
already are allowed to edit wikitext) and is also of use to other
extensions such as SemanticResultFormats and Genealogy which
create dynamic graphs that need to be re-rendered by anonymous
users.

The upload is done by a new 'GraphViz' user, whose name is defined
by the 'graphviz-upload-user' system message.

This change also fixes a few minor deprecations and bugs such as
the error message shown when there is no filename known, and some
phpdoc is improved.

Bug: T176594
Change-Id: Idc72ff953a82229665e4aa1798eaf785750cab45

Details

Committed
SamwilsonMar 13 2018, 4:29 AM
Parents
rEGVI586067ca4eab: Remove Deprecated function getStreamHeaders
Branches
Unknown
Tags
Unknown
References
refs/changes/84/398784/11
ChangeId
Idc72ff953a82229665e4aa1798eaf785750cab45