Index: trunk/extensions/WikiCategoryTagCloud/WikiCategoryTagCloud.php |
— | — | @@ -63,7 +63,6 @@ |
64 | 64 | $INCREASE_FACTOR = 100; |
65 | 65 | |
66 | 66 | $dbr = wfGetDB( DB_SLAVE ); |
67 | | - extract( $dbr->tableNames( 'categorylinks' ) ); |
68 | 67 | |
69 | 68 | $cloud_style = @$params['style']; |
70 | 69 | $cloud_classes = preg_split( '/\s+/', @$params['class'] ); |
— | — | @@ -100,7 +99,7 @@ |
101 | 100 | } |
102 | 101 | } |
103 | 102 | |
104 | | - $sql = "SELECT cl_to as title, COUNT(*) as count FROM $categorylinks " . $exclude_condition . " GROUP BY cl_to HAVING count >= $min_count_input ORDER BY cl_to ASC"; |
| 103 | + $sql = "SELECT cl_to as title, COUNT(*) as count FROM {$dbr->tableName( 'categorylinks' )} " . $exclude_condition . " GROUP BY cl_to HAVING count >= $min_count_input ORDER BY cl_to ASC"; |
105 | 104 | |
106 | 105 | $res = $dbr->query( $sql ); |
107 | 106 | $count = $dbr->numRows( $res ); |
— | — | @@ -144,4 +143,4 @@ |
145 | 144 | return htmlspecialchars( $matches[1] ); |
146 | 145 | } |
147 | 146 | } |
148 | | -} |
| 147 | +} |
\ No newline at end of file |