* (bug 8136) Introduce 'ArticleUndelete' hook; see docs/hooks.txt for more info
[lhc/web/wiklou.git] / includes / SpecialUndelete.php
index 888661b..a837eaf 100644 (file)
@@ -431,8 +431,10 @@ class PageArchive {
                        }
 
                        if( $newid ) {
+                               wfRunHooks( 'ArticleUndelete', array( &$this->title, true ) );
                                Article::onArticleCreate( $this->title );
                        } else {
+                               wfRunHooks( 'ArticleUndelete', array( &$this->title, false ) );
                                Article::onArticleEdit( $this->title );
                        }
                } else {