http://www.mediawiki.org/wiki/Special:Code/MediaWiki/92425
Revision: 92425 Author: ashley Date: 2011-07-18 11:37:22 +0000 (Mon, 18 Jul 2011) Log Message: ----------- SocialProfile: add new UserProfileRightSideAfterActivity hook to UserProfilePage.php so that we can inject getArticles() from the BlogPage extension instead of having to add getArticles() to UserProfilePage (the principle of extensions being as self-contained as possible) Modified Paths: -------------- trunk/extensions/SocialProfile/UserProfile/UserProfilePage.php Modified: trunk/extensions/SocialProfile/UserProfile/UserProfilePage.php =================================================================== --- trunk/extensions/SocialProfile/UserProfile/UserProfilePage.php 2011-07-18 11:03:53 UTC (rev 92424) +++ trunk/extensions/SocialProfile/UserProfile/UserProfilePage.php 2011-07-18 11:37:22 UTC (rev 92425) @@ -94,6 +94,10 @@ $wgOut->addHTML( $this->getPersonalInfo( $this->user_id, $this->user_name ) ); $wgOut->addHTML( $this->getActivity( $this->user_name ) ); + // Hook for BlogPage + if ( !wfRunHooks( 'UserProfileRightSideAfterActivity', array( $this ) ) ) { + wfDebug( __METHOD__ . ": UserProfileRightSideAfterActivity hook messed up profile!\n" ); + } $wgOut->addHTML( $this->getCasualGames( $this->user_id, $this->user_name ) ); $wgOut->addHTML( $this->getUserBoard( $this->user_id, $this->user_name ) ); _______________________________________________ MediaWiki-CVS mailing list MediaWiki-CVS@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs