Fix old log params of log type rights for new api logparam style
authorumherirrender <umherirrender_de.wp@web.de>
Fri, 17 Apr 2015 16:24:50 +0000 (18:24 +0200)
committerUmherirrender <umherirrender_de.wp@web.de>
Fri, 17 Apr 2015 18:03:52 +0000 (18:03 +0000)
commit8756987e27fb9d9df77dd10e750c61bd2901e39a
tree716766578a1ae980c2236177ad423ae71bdfb16a
parent055068d8f00943c7801283399b40ae9c32ccd292
Fix old log params of log type rights for new api logparam style

The log param of right changes can also just be a string. The new api
logparam style does not recognize this and shows an error:
Argument 1 passed to ApiResult::setIndexedTagName() must be an instance of array, string given

Centralize the code in a new helper function and use it also for the gui
part.

Follow-Up: I6846ce09322eb404c506b5a51780a44ce9279fe2
Change-Id: I4762743b3f43e6ebd806d3ae516507ae66478e96
includes/logging/RightsLogFormatter.php