Hi
I would be grateful if one could review the the functions added in the patchhttps://bugzilla.wikimedia.org/attachment.cgi?id=7813&action=diffI attached to bug 24411 https://bugzilla.wikimedia.org/show_bug.cgi?id=24411 and post comments on the bug on how to improve the code.
Best,
Hojjat (aka Huji)