Skip to content

Instantly share code, notes, and snippets.

@atdt
Created June 22, 2012 19:58
Show Gist options
  • Select an option

  • Save atdt/2974808 to your computer and use it in GitHub Desktop.

Select an option

Save atdt/2974808 to your computer and use it in GitHub Desktop.
excerpt from post-edit feedback ext.
function onBeforePageDisplay( &$out, &$skin ) {
global $wgRequest;
global $wgUser;
global $wgOut;
if ( $wgRequest->getCheck('postedit') ) {
$wgOut->addJsConfigVars( array (
"wgUserEditCount" => $wgUser->getEditCount(),
"wgArticleUpdate" => true
) );
$out->addModules( 'ext.Congrats' );
}
return true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment