setHook( 'GitTimeline', array( __CLASS__, 'renderGitTimeline' ) ); return true; } static function onBeforePageDisplay( OutputPage &$out, Skin &$skin ) { $out->addModuleStyles( array ( 'ext.gittimeline' ) ); } static function renderGitTimeline( $input, array $args, Parser $parser, PPFrame $frame ) { global $wgRepositoriesDirectory; global $wgCGitUrl; if ( ! isset( $args['repo'] ) ) return ''; if ( ! isset( $args['keep'] ) ) return ''; $repo = $args['repo']; $keep = $args['keep']; $git_command = <<(%ar)" ) echo -e "\t
  • r\$revision - \$message
  • " done EOT; $output = shell_exec($git_command); return array( "$output", 'noparse' => true, 'isHTML' => true ); } } ?>