Index: branches/REL1_4/phase3/includes/Image.php |
— | — | @@ -869,6 +869,15 @@ |
870 | 870 | |
871 | 871 | $log = new LogPage( 'upload' ); |
872 | 872 | $log->addEntry( 'upload', $descTitle, $desc ); |
| 873 | + |
| 874 | + # Run page save hooks |
| 875 | + $article = new Article( $descTitle ); |
| 876 | + if( wfRunHooks( 'ArticleSave', array( |
| 877 | + &$article, &$wgUser, $textdesc, $desc, false, false, null ) ) ) { |
| 878 | + wfRunHooks( 'ArticleSaveComplete', array( |
| 879 | + &$article, &$wgUser, $textdesc, $desc, false, false, null ) ); |
| 880 | + } |
| 881 | + |
873 | 882 | } |
874 | 883 | |
875 | 884 | /** |
Index: branches/REL1_4/phase3/RELEASE-NOTES |
— | — | @@ -594,6 +594,7 @@ |
595 | 595 | * Avoid overwriting shared image metadata cache with bogus encoding conversions |
596 | 596 | * Fix reporting of minor edits in Special:Export output |
597 | 597 | * (bug 2150) Fix tab indexes on edit form |
| 598 | +* Run ArticleSave hooks on image upload. |
598 | 599 | |
599 | 600 | |
600 | 601 | === Caveats === |