Skip to content

Commit

Permalink
Fixes #12393: MantisGraph graph_api.php:error_text() is broken when u…
Browse files Browse the repository at this point in the history
…sing JpGraph
  • Loading branch information
rombert committed Dec 6, 2011
1 parent 79a92fb commit 1a73c89
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions plugins/MantisGraph/core/graph_api.php
Expand Up @@ -883,14 +883,15 @@ function graph_date_format( $p_date ) {
# ----------------------------------------------------
function error_check( $bug_count, $title ) {
if( 0 == $bug_count ) {
$t_graph_font = graph_get_font();

error_text( $title, plugin_lang_get( 'not_enough_data' ) );
}
}

function error_text( $title, $text ) {
if( OFF == plugin_config_get( 'eczlibrary' ) ) {

$t_graph_font = graph_get_font();

$graph = new CanvasGraph( 300, 380 );

$txt = new Text( $text, 150, 100 );
Expand Down

0 comments on commit 1a73c89

Please sign in to comment.