Topic on Extension talk:SimpleChanges

Dcianf (talkcontribs)

My users requested including the comment after the title, just like the editor. Because I'm afraid of using new variable names I kept the same structure as the ShowUser block, but someone who understands scope could easily make this another global variable and also pass a maximum string length.

#global $wgSimpleChangesShowUser;

#if ( $wgSimpleChangesShowUser ) {

# from ChangesList::insertUserRelatedLinks()

$user = ' <i>' . substr($rc->mAttribs['rc_comment'] ,0,60). ' </i>';

$changeLine .= Html::rawElement( 'span', array( 'class' => 'simplechanges-comment' ), $user );

#}

The result looks like this:

  • Main Page‎ (Dcianf) Changed Recent Changes to 90 days
Reply to "Include Comment"