jenkins-bot has submitted this change and it was merged.
Change subject: Delay die when PluggableAuth is missing
......................................................................
Delay die when PluggableAuth is missing
Change-Id: I6fd1d7690bceeaa9397eb4f9984965bfba07b012
---
M OpenIDConnect.php
1 file changed, 5 insertions(+), 3 deletions(-)
Approvals:
Hashar: Looks good to me, approved
jenkins-bot: Verified
diff --git a/OpenIDConnect.php b/OpenIDConnect.php
index 99db120..698cad8 100644
--- a/OpenIDConnect.php
+++ b/OpenIDConnect.php
@@ -22,9 +22,11 @@
* DEALINGS IN THE SOFTWARE.
*/
-if ( !class_exists( 'PluggableAuth' ) ) {
- die( '<b>Error:</b> This extension requires the PluggableAuth extension
to be included first' );
-}
+$wgExtensionFunctions[] = function () {
+ if ( !class_exists( 'PluggableAuth' ) ) {
+ die( '<b>Error:</b> This extension requires the PluggableAuth
extension to be included first' );
+ }
+};
if ( array_key_exists( 'PluggableAuth_Class', $GLOBALS ) ) {
die( '<b>Error:</b> A value for $PluggableAuth_Class has already been
set.' );
--
To view, visit https://gerrit.wikimedia.org/r/265257
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I6fd1d7690bceeaa9397eb4f9984965bfba07b012
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/OpenIDConnect
Gerrit-Branch: master
Gerrit-Owner: Paladox <[email protected]>
Gerrit-Reviewer: Hashar <[email protected]>
Gerrit-Reviewer: Legoktm <[email protected]>
Gerrit-Reviewer: Paladox <[email protected]>
Gerrit-Reviewer: Reedy <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits