. /** * @package MantisBT * @copyright Copyright (C) 2000 - 2002 Kenzaburo Ito - kenito@300baud.org * @copyright Copyright (C) 2002 - 2014 MantisBT Team - mantisbt-dev@lists.sourceforge.net * @link http://www.mantisbt.org */ /** * MantisBT Core API's */ require_once( 'core.php' ); require_once( 'graph_api.php' ); access_ensure_project_level( config_get( 'view_summary_threshold' ) ); $f_width = gpc_get_int( 'width', 300 ); $t_ar = plugin_config_get( 'bar_aspect' ); $t_token = token_get_value( TOKEN_GRAPH ); if ( $t_token == null ) { $t_metrics = create_bug_enum_summary( lang_get( 'priority_enum_string' ), 'priority'); } else { $t_metrics = graph_total_metrics( unserialize( $t_token ) ); } graph_bar( $t_metrics, lang_get( 'by_priority' ), $f_width, $f_width * $t_ar );