ucListEdit( $sk, $ns, $t, $ts, $topmark, $comment, ( $me > 0), $isnew, $usertext );
}
$wgOut->addHTML( "</ul>\n" );
+
+ # Validations
+ $val = new Validation ;
+ $val = $val->countUserValidations ( $id ) ;
+ $val = str_replace ( "$1" , $val , wfMsg ( 'val_user_validations' ) ) ;
+ $wgOut->addHTML( $val );
}
$html .= "</table>\n" ;
return $html ;
}
-
+
+ function countUserValidations ( $userid )
+ {
+ $sql = "SELECT count(DISTINCT val_title) AS num FROM validate WHERE val_user={$userid}" ;
+ $res = wfQuery( $sql, DB_READ );
+ if ( $s = wfFetchObject( $res ) ) $num = $s->num ;
+ else $num = 0 ;
+ return $num ;
+ }
+
}
function wfSpecialValidate( $page = "" )
'val_stat_link_text' => 'Validation statistics for this article',
'val_view_version' => 'View this version',
'val_validate_version' => 'Validate this version',
+'val_user_validations' => 'This user has validated $1 pages.',
# Move page
#