Aaron Schulz has submitted this change and it was merged. Change subject: Add a Uri class. ......................................................................
Add a Uri class. Add a Uri class matching our mw.Uri JS class for handling uris. This class should be helpful in a bunch of places where we end up doing manual concatenation of things like the path + '?' + query of a url parsed with wfParseUrl. [tylerro...@gmail.com: Removed cat() function, fixed wfWarn() usage for aliases and added visibility to all functions. Also added test for aliases.] Signed-off-by: Tyler Romeo <tylerro...@gmail.com> Change-Id: Iefdedb7c80cf1d4aab58050edab3ab44ba868a58 --- M includes/AutoLoader.php M includes/GlobalFunctions.php A includes/Uri.php M tests/phpunit/includes/GlobalFunctions/GlobalTest.php A tests/phpunit/includes/UriTest.php 5 files changed, 523 insertions(+), 107 deletions(-) Approvals: Aaron Schulz: Looks good to me, approved jenkins-bot: Verified -- To view, visit https://gerrit.wikimedia.org/r/4069 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: Iefdedb7c80cf1d4aab58050edab3ab44ba868a58 Gerrit-PatchSet: 7 Gerrit-Project: mediawiki/core Gerrit-Branch: master Gerrit-Owner: Daniel Friesen <mediaw...@danielfriesen.name> Gerrit-Reviewer: Aaron Schulz <asch...@wikimedia.org> Gerrit-Reviewer: Brion VIBBER <br...@wikimedia.org> Gerrit-Reviewer: Daniel Friesen <mediaw...@danielfriesen.name> Gerrit-Reviewer: Hashar <has...@free.fr> Gerrit-Reviewer: Nikerabbit <niklas.laxst...@gmail.com> Gerrit-Reviewer: Parent5446 <tylerro...@gmail.com> Gerrit-Reviewer: Platonides <platoni...@gmail.com> Gerrit-Reviewer: Reedy <re...@wikimedia.org> Gerrit-Reviewer: jenkins-bot _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits