Skip to content

Commit

Permalink
Fix 0013542: ... try to open an iframe and fail
Browse files Browse the repository at this point in the history
    Replace iframe by include
  • Loading branch information
VeMag authored and rombert committed Apr 29, 2012
1 parent 4a9a7ae commit 4f93c95
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions plugins/MantisGraph/pages/bug_graph_page.php
Expand Up @@ -93,24 +93,22 @@
$f_end = $t_period->get_end_formatted();
if ( ($t_body == 1 ) || ($t_body == 3) ) {
if ( $f_show_as_table ) {
echo '<br /><iframe src="' . plugin_page( 'bug_graph_bystatus.php' ) . '&width='.$t_width.'&amp;interval=' . $f_interval .
'&amp;start_date=' . $f_start . '&amp;end_date=' . $f_end .
'&amp;summary=' . $t_summary . '&amp;show_table=1" width="100%" height="80%" frameborder="0"' .
' marginwidth="0" marginheight="0"></iframe>';
echo '<br />';
include( config_get_global('plugin_path' ). plugin_get_current() . DIRECTORY_SEPARATOR .
'pages' . DIRECTORY_SEPARATOR . 'bug_graph_bystatus.php' );
} else {
echo '<br /><img src="' . plugin_page( 'bug_graph_bystatus.php' ) . '&width=600&amp;interval=' . $f_interval .
echo '<br /><img src="' . plugin_page( 'bug_graph_bystatus.php' ) . '&amp;width=600&amp;interval=' . $f_interval .
'&amp;start_date=' . $f_start . '&amp;end_date=' . $f_end .
'&amp;summary=' . $t_summary . '&amp;show_table=0" alt="Bug Graph" />';
}
}
if ( ($t_body == 2 ) || ($t_body == 3) ) {
if ( $f_show_as_table ) {
echo '<br /><iframe src="' . plugin_page( 'bug_graph_bycategory.php' ) . '&width='.$t_width.'&amp;interval=' . $f_interval .
'&amp;start_date=' . $f_start . '&amp;end_date=' . $f_end .
'&amp;summary=' . $t_summary . '&amp;show_table=1" width="100%" height="80%" frameborder="0"' .
' marginwidth="0" marginheight="0"></iframe>';
echo '<br />';
include( config_get_global('plugin_path' ). plugin_get_current() . DIRECTORY_SEPARATOR .
'pages' . DIRECTORY_SEPARATOR . 'bug_graph_bycategory.php' );
} else {
echo '<br /><img src="' . plugin_page( 'bug_graph_bycategory.php' ) . '&width=600&amp;interval=' . $f_interval .
echo '<br /><img src="' . plugin_page( 'bug_graph_bycategory.php' ) . '&amp;width=600&amp;interval=' . $f_interval .
'&amp;start_date=' . $f_start . '&amp;end_date=' . $f_end .
'&amp;summary=' . $t_summary . '&amp;show_table=0" alt="Bug Graph" />';
}
Expand Down

0 comments on commit 4f93c95

Please sign in to comment.