* (bug 3047) Don't mention talk pages on Special:Movepage when there isn't one
* Show links to user page, talk page and contributions page on Special:Newpages
* Special:Export can now export a list of all contributors to an article (off by default)
+* (bug 5372) Add number of files to Special:Statistics
Misc.:
* PHP 4.1 compatibility fix: don't use new_link parameter to mysql_connect
$admins = $dbr->selectField( 'user_groups', 'COUNT(*)', array( 'ug_group' => 'sysop' ), $fname );
$numJobs = $dbr->selectField( 'job', 'COUNT(*)', '', $fname );
+ $numFiles = $dbr->selectField( 'image', 'COUNT(*)', '', $fname );
if ($action == 'raw') {
$wgOut->disable();
header( 'Pragma: nocache' );
- echo "total=$total;good=$good;views=$views;edits=$edits;users=$users;admins=$admins\n";
+ echo "total=$total;good=$good;views=$views;edits=$edits;users=$users;admins=$admins;files=$numFiles\n";
return;
} else {
$text = '==' . wfMsg( 'sitestats' ) . "==\n" ;
$wgLang->formatNum( $edits ),
$wgLang->formatNum( sprintf( '%.2f', $total ? $edits / $total : 0 ) ),
$wgLang->formatNum( sprintf( '%.2f', $edits ? $views / $edits : 0 ) ),
- $wgLang->formatNum( $numJobs )
+ $wgLang->formatNum( $numJobs ),
+ $wgLang->formatNum( $numFiles )
);
$text .= "\n==" . wfMsg( 'userstats' ) . "==\n";
This includes \"talk\" pages, pages about {{SITENAME}}, minimal \"stub\"
pages, redirects, and others that probably don't qualify as content pages.
Excluding those, there are '''$2''' pages that are probably legitimate
-content pages.
+content pages. We have '''$8''' files uploaded.
There have been a total of '''$3''' page views, and '''$4''' page edits
since the wiki was setup.