From: Sam Smith Date: Wed, 31 Aug 2016 10:46:02 +0000 (+0100) Subject: MediaWikiServices: Import NoSuchServiceException X-Git-Tag: 1.31.0-rc.0~5820 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/cotisations/voir.php?a=commitdiff_plain;h=e77e7f2fde080a10e7290607faadb0bd328fe9f3;p=lhc%2Fweb%2Fwiklou.git MediaWikiServices: Import NoSuchServiceException NoSuchServiceException is in the MediaWiki\Services namespace. Since the MediaWikiServices class is in the MediaWiki namespace, the catch ( NoSuchServiceException $e ) line added in Ifc587d61 will fail to catch any exception. Co-Author: Paladox Bug: T143974 Change-Id: I903336c85c0bb9fb259f475f37959136e2ff7eca --- diff --git a/includes/MediaWikiServices.php b/includes/MediaWikiServices.php index 037e96ffa8..f621867a50 100644 --- a/includes/MediaWikiServices.php +++ b/includes/MediaWikiServices.php @@ -16,6 +16,7 @@ use MediaWiki\Linker\LinkRenderer; use MediaWiki\Linker\LinkRendererFactory; use MediaWiki\Services\SalvageableService; use MediaWiki\Services\ServiceContainer; +use MediaWiki\Services\NoSuchServiceException; use MWException; use ObjectCache; use SearchEngine;