Index: branches/5.2.x/core/units/statistics/statistics_config.php =================================================================== diff -u -N -r14726 -r16388 --- branches/5.2.x/core/units/statistics/statistics_config.php (.../statistics_config.php) (revision 14726) +++ branches/5.2.x/core/units/statistics/statistics_config.php (.../statistics_config.php) (revision 16388) @@ -1,6 +1,6 @@ 'stat', - 'ItemClass' => Array('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), - 'ListClass' => Array('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), - 'EventHandlerClass' => Array('class' => 'StatisticsEventHandler', 'file' => 'statistics_event_handler.php', 'build_event' => 'OnBuild'), - 'TagProcessorClass' => Array('class' => 'StatisticsTagProcessor', 'file' => 'statistics_tag_processor.php', 'build_event' => 'OnBuild'), +$config = Array ( + 'Prefix' => 'stat', + 'ItemClass' => Array ('class' => 'kDBItem', 'file' => '', 'build_event' => 'OnItemBuild'), + 'ListClass' => Array ('class' => 'kDBList', 'file' => '', 'build_event' => 'OnListBuild'), + 'EventHandlerClass' => Array ('class' => 'StatisticsEventHandler', 'file' => 'statistics_event_handler.php', 'build_event' => 'OnBuild'), + 'TagProcessorClass' => Array ('class' => 'StatisticsTagProcessor', 'file' => 'statistics_tag_processor.php', 'build_event' => 'OnBuild'), - 'AutoLoad' => true, + 'AutoLoad' => true, - 'QueryString' => Array( - 1 => 'id', - 2 => 'Page', - 3 => 'PerPage', - 4 => 'event', - 5 => 'mode', - ), + 'QueryString' => Array ( + 1 => 'id', + 2 => 'Page', + 3 => 'PerPage', + 4 => 'event', + 5 => 'mode', + ), - 'IDField' => 'StatItemId', + 'IDField' => 'StatItemId', - 'TitleField' => 'ListLabel', + 'TitleField' => 'ListLabel', - 'TitlePresets' => Array ( - 'statistics_list' => Array ( - 'prefixes' => Array ('stat_List'), 'format' => "!la_title_Statistics!", - ), - ), + 'TitlePresets' => Array ( + 'statistics_list' => Array ( + 'prefixes' => Array ('stat_List'), 'format' => "!la_title_Statistics!", + ), + ), - 'TableName' => TABLE_PREFIX.'StatItem', + 'TableName' => TABLE_PREFIX.'StatItem', - 'ListSQLs' => Array('' => 'SELECT %1$s.* %2$s FROM %1$s'), - 'ItemSQLs' => Array('' => 'SELECT %1$s.* %2$s FROM %1$s'), + 'ListSQLs' => Array ( + '' => ' SELECT %1$s.* %2$s + FROM %1$s' + ), - 'ListSortings' => Array( - '' => Array( - 'Sorting' => Array('Priority' => 'asc'), - ) - ), + 'ListSortings' => Array ( + '' => Array ( + 'Sorting' => Array ('Priority' => 'asc'), + ) + ), - 'Fields' => Array( - 'StatItemId' => Array('type' => 'int', 'not_null' => 1, 'default' => 0), - 'Module' => Array('type' => 'string','not_null' => '1','default' => ''), - 'ValueSQL' => Array('type' => 'string','default' => null), - 'ResetSQL' => Array('type' => 'string','default' => null), - 'ListLabel' => Array('type' => 'string','not_null' => 1, 'default' => ''), - 'Priority' => Array('type' => 'int','not_null' => 1, 'default' => 0), - 'AdminSummary' => Array('type' => 'int','not_null' => 1, 'default' => 0), - ), + 'Fields' => Array ( + 'StatItemId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + 'Module' => Array ('type' => 'string', 'not_null' => '1', 'default' => ''), + 'ValueSQL' => Array ('type' => 'string', 'default' => null), + 'ResetSQL' => Array ('type' => 'string', 'default' => null), + 'ListLabel' => Array ('type' => 'string', 'not_null' => 1, 'default' => ''), + 'Priority' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + 'AdminSummary' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), + ), - - - 'Grids' => Array( - 'Default' => Array( - 'Icons' => Array('default' => 'icon16_item.png'), - 'Fields' => Array( - 'Username' => Array('data_block' => 'grid_checkbox_td'), - 'LastName' => Array(), - 'FirstName' => Array(), - ), - ), - - - ), - - ); \ No newline at end of file + 'Grids' => Array ( + 'Default' => Array ( + 'Icons' => Array ('default' => 'icon16_item.png'), + 'Fields' => Array ( + 'Username' => Array ('data_block' => 'grid_checkbox_td'), + 'LastName' => Array (), + 'FirstName' => Array (), + ), + ), + ), +); \ No newline at end of file