diff options
author | Evan Prodromou <evanprodromou@users.mediawiki.org> | 2004-04-23 22:37:39 +0000 |
---|---|---|
committer | Evan Prodromou <evanprodromou@users.mediawiki.org> | 2004-04-23 22:37:39 +0000 |
commit | 4783f13a193532b0fcfff3419b1eac4046facacf (patch) | |
tree | 91547aa9c27da81c1edd6189fd49eb617a84b43d | |
parent | 4d04aff2a361ddfaad9550511e84b55d1878eef5 (diff) | |
download | mediawikicore-4783f13a193532b0fcfff3419b1eac4046facacf.tar.gz mediawikicore-4783f13a193532b0fcfff3419b1eac4046facacf.zip |
Remove now-unused dcContributors function.
Notes
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/3299
-rw-r--r-- | includes/Metadata.php | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/includes/Metadata.php b/includes/Metadata.php index d3366cff109f..49a2275c34b0 100644 --- a/includes/Metadata.php +++ b/includes/Metadata.php @@ -228,38 +228,6 @@ function wfCreativeCommonsRdf($article) { } } -/* private */ function dcContributors($article) { - - $title = $article->mTitle; - - $contribs = array(); - - $res = wfQuery("SELECT DISTINCT old_user,old_user_text" . - " FROM old " . - " WHERE old_namespace = " . $title->getNamespace() . - " AND old_title = '" . $title->getDBkey() . "'" . - " AND old_user != 0 " . - " AND old_user != " . $article->getUser(), DB_READ); - - while ( $line = wfFetchObject( $res ) ) { - $contribs[$line->old_user_text] = $line->old_user; - } - - # Count anonymous users - - $res = wfQuery("SELECT COUNT(*) AS cnt " . - " FROM old " . - " WHERE old_namespace = " . $title->getNamespace() . - " AND old_title = '" . $title->getDBkey() . "'" . - " AND old_user = 0 ", DB_READ); - - while ( $line = wfFetchObject( $res ) ) { - $contribs[$line->cnt] = 0; - } - - return $contribs; -} - /* Takes an arg, for future enhancement with different rights for different pages. */ |