jenkins-bot has submitted this change and it was merged.
Change subject: Minor update
......................................................................
Minor update
In extension.json we can use a callback to register the function file for
define.
Change-Id: I0383f845af006d13dc97d07738b1913a298df8e2
---
M LqtFunctions.php
1 file changed, 4 insertions(+), 5 deletions(-)
Approvals:
Nikerabbit: Looks good to me, approved
jenkins-bot: Verified
diff --git a/LqtFunctions.php b/LqtFunctions.php
index 65b5378..625fd85 100644
--- a/LqtFunctions.php
+++ b/LqtFunctions.php
@@ -1,12 +1,11 @@
<?php
-if ( !defined( 'MEDIAWIKI' ) )
- die();
-/*
-* Get a value from a global array if it exists, otherwise use $default
-*/
+/**
+ * Get a value from a global array if it exists, otherwise use $default
+ */
function efArrayDefault( $name, $key, $default ) {
global $$name;
+
if ( isset( $$name ) && is_array( $$name ) && array_key_exists( $key,
$$name ) ) {
$foo = $$name;
return $foo[$key];
--
To view, visit https://gerrit.wikimedia.org/r/212816
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I0383f845af006d13dc97d07738b1913a298df8e2
Gerrit-PatchSet: 20
Gerrit-Project: mediawiki/extensions/LiquidThreads
Gerrit-Branch: master
Gerrit-Owner: Paladox <[email protected]>
Gerrit-Reviewer: Jforrester <[email protected]>
Gerrit-Reviewer: Legoktm <[email protected]>
Gerrit-Reviewer: Nikerabbit <[email protected]>
Gerrit-Reviewer: Paladox <[email protected]>
Gerrit-Reviewer: Reedy <[email protected]>
Gerrit-Reviewer: Werdna <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits