Changeset 1164 for trunk/www/macros/macro_rankings.php
- Timestamp:
- 01/14/12 16:18:10 (4 months ago)
- File:
-
- 1 edited
-
trunk/www/macros/macro_rankings.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/macros/macro_rankings.php
r1134 r1164 67 67 array( 68 68 'title' => 'Pozitie', 69 'key' => 'pos', 70 'rowform' => create_function_cached('$row', 'return $row["ranking"];'), 69 'key' => 'ranking', 71 70 'css_class' => 'number rank' 72 71 ), … … 74 73 'title' => 'Nume', 75 74 'key' => 'user_full', 76 'rowform' => create_function_cached('$row', 77 'return format_user_normal($row["user_name"], $row["user_full"], $row["user_rating"]);'), 75 'rowform' => function($row) { 76 return format_user_normal($row['user_name'], $row['user_full'], $row['user_rating']); 77 }, 78 78 ), 79 79 ); … … 111 111 'title' => $column['title'], 112 112 'key' => $column['name'], 113 'rowform' => create_function_cached('$row', 'return round($row[\''.$column['name'].'\']);'), 113 'rowform' => function($row) use ($column) { 114 return round($row[$column['name']]); 115 }, 114 116 'css_class' => 'number score' 115 117 )); … … 123 125 'title' => $total, 124 126 'key' => 'score', 125 'rowform' => create_function_cached('$row', 'return round($row[\'score\']);'), 127 'rowform' => function($row) { 128 return round($row['score']); 129 }, 126 130 'css_class' => 'number score' 127 131 ));
Note: See TracChangeset
for help on using the changeset viewer.
![[infoarena] development](/chrome/site/logo.png)