Index: trunk/phase3/docs/hooks.txt |
— | — | @@ -1478,6 +1478,7 @@ |
1479 | 1479 | $title: title object representing the file |
1480 | 1480 | $file: file object that will be used to create the image |
1481 | 1481 | &$params: 2-D array of parameters |
| 1482 | +$parser: Parser object that called the hook |
1482 | 1483 | |
1483 | 1484 | 'ParserSectionCreate': Called each time the parser creates a document section |
1484 | 1485 | from wikitext. Use this to apply per-section modifications to HTML (like |
Index: trunk/phase3/includes/parser/Parser.php |
— | — | @@ -5117,7 +5117,7 @@ |
5118 | 5118 | $params['frame']['title'] = $this->stripAltText( $caption, $holders ); |
5119 | 5119 | } |
5120 | 5120 | |
5121 | | - wfRunHooks( 'ParserMakeImageParams', array( $title, $file, &$params ) ); |
| 5121 | + wfRunHooks( 'ParserMakeImageParams', array( $title, $file, &$params, $this ) ); |
5122 | 5122 | |
5123 | 5123 | # Linker does the rest |
5124 | 5124 | $time = isset( $options['time'] ) ? $options['time'] : false; |
Index: trunk/phase3/RELEASE-NOTES-1.20 |
— | — | @@ -23,6 +23,7 @@ |
24 | 24 | * (bug 34896) Update jQuery JSON plugin to v2.3 (2011-09-17) |
25 | 25 | * (bug 34302) Add CSS classes to email fields in user preferences |
26 | 26 | * Introduced $wgDebugDBTransactions to trace transaction status (currently PostgreSQL only) |
| 27 | +* (bug 23795) Add parser itself to ParserMakeImageParams hook. |
27 | 28 | |
28 | 29 | === Bug fixes in 1.20 === |
29 | 30 | * (bug 30245) Use the correct way to construct a log page title. |