Indefero

Indefero Commit Details


Date:2011-03-16 14:58:13 (13 years 9 months ago)
Author:Thomas Keller
Branch:develop, feature-issue_links, feature.better-home, feature.content-md5, feature.diff-whitespace, feature.download-md5, feature.issue-links, feature.issue-of-others, feature.issue-summary, feature.search-filter, feature.webrepos, feature.wiki-default-page, release-1.1, release-1.2, release-1.3
Commit:b75884c57e654a5057470e7a8141d78e55103941
Parents: 603188f6cedea2d1c71fa671a734c474164e0cd0
Message:Use Pluf_SQL instead of raw SQL, the latter caused problems on installations with table prefixes.

Changes:

File differences

src/IDF/Views.php
377377
378378
379379
380
381
382
383
380
381
382
384383
385384
386385
$forgestats['projects'] = count($projects);
// Count members
$db =& Pluf::db();
$sql = "SELECT count(id) as nb FROM indefero_users WHERE first_name != '---'";
$ret = $db->select ($sql);
$forgestats['members'] = $ret[0]['nb'];
$sql = new Pluf_SQL('first_name != %s', array('---'));
$forgestats['members'] = Pluf::factory('Pluf_User')
->getCount(array('filter' => $sql->gen()));
return $forgestats;
}

Archive Download the corresponding diff file

Page rendered in 0.08147s using 13 queries.