EBernhardson has uploaded a new change for review.
https://gerrit.wikimedia.org/r/98012
Change subject: Repair for redlinks patch
......................................................................
Repair for redlinks patch
The redlinks patch uses a callable in the form of array( $obj, 'method' ).
This type of callable is not directly invokable and must be called via
call_user_func or call_user_func_array.
Change-Id: I4da20c31d44c447eaa96a5dd009178c390c08573
---
M includes/Model/PostRevision.php
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Flow
refs/changes/12/98012/1
diff --git a/includes/Model/PostRevision.php b/includes/Model/PostRevision.php
index 426ec82..104cdfd 100644
--- a/includes/Model/PostRevision.php
+++ b/includes/Model/PostRevision.php
@@ -265,7 +265,7 @@
$continue = false;
foreach ( $callbacks as $i => $callback ) {
if ( is_callable( $callback ) ) {
- $return = $callback( $this, $results[$i] );
+ $return = call_user_func( $callback, $this,
$results[$i] );
// Callbacks respond with: [ result, continue ]
// Continue can be set to false if a callback
has completed
--
To view, visit https://gerrit.wikimedia.org/r/98012
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I4da20c31d44c447eaa96a5dd009178c390c08573
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Flow
Gerrit-Branch: master
Gerrit-Owner: EBernhardson <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits