Index: trunk/phase3/docs/hooks.txt |
— | — | @@ -1221,6 +1221,8 @@ |
1222 | 1222 | through ResourceLoaderGetConfigVars instead. |
1223 | 1223 | &$vars: variable (or multiple variables) to be added into the output |
1224 | 1224 | of Skin::makeVariablesScript |
| 1225 | +&$out: The OutputPage which called the hook, |
| 1226 | + can be used to get the real title |
1225 | 1227 | |
1226 | 1228 | 'MarkPatrolled': before an edit is marked patrolled |
1227 | 1229 | $rcid: ID of the revision to be marked patrolled |
Index: trunk/phase3/includes/OutputPage.php |
— | — | @@ -2658,7 +2658,7 @@ |
2659 | 2659 | } |
2660 | 2660 | |
2661 | 2661 | // Allow extensions to add their custom variables to the global JS variables |
2662 | | - wfRunHooks( 'MakeGlobalVariablesScript', array( &$vars ) ); |
| 2662 | + wfRunHooks( 'MakeGlobalVariablesScript', array( &$vars, &$this ) ); |
2663 | 2663 | |
2664 | 2664 | return $vars; |
2665 | 2665 | } |