Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 4f93c95

Browse files
VeMagrombert
authored andcommittedApr 29, 2012
Fix 0013542: ... try to open an iframe and fail
Replace iframe by include
1 parent 4a9a7ae commit 4f93c95

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed
 

‎plugins/MantisGraph/pages/bug_graph_page.php

+8-10
Original file line numberDiff line numberDiff line change
@@ -93,24 +93,22 @@
9393
$f_end = $t_period->get_end_formatted();
9494
if ( ($t_body == 1 ) || ($t_body == 3) ) {
9595
if ( $f_show_as_table ) {
96-
echo '<br /><iframe src="' . plugin_page( 'bug_graph_bystatus.php' ) . '&width='.$t_width.'&amp;interval=' . $f_interval .
97-
'&amp;start_date=' . $f_start . '&amp;end_date=' . $f_end .
98-
'&amp;summary=' . $t_summary . '&amp;show_table=1" width="100%" height="80%" frameborder="0"' .
99-
' marginwidth="0" marginheight="0"></iframe>';
96+
echo '<br />';
97+
include( config_get_global('plugin_path' ). plugin_get_current() . DIRECTORY_SEPARATOR .
98+
'pages' . DIRECTORY_SEPARATOR . 'bug_graph_bystatus.php' );
10099
} else {
101-
echo '<br /><img src="' . plugin_page( 'bug_graph_bystatus.php' ) . '&width=600&amp;interval=' . $f_interval .
100+
echo '<br /><img src="' . plugin_page( 'bug_graph_bystatus.php' ) . '&amp;width=600&amp;interval=' . $f_interval .
102101
'&amp;start_date=' . $f_start . '&amp;end_date=' . $f_end .
103102
'&amp;summary=' . $t_summary . '&amp;show_table=0" alt="Bug Graph" />';
104103
}
105104
}
106105
if ( ($t_body == 2 ) || ($t_body == 3) ) {
107106
if ( $f_show_as_table ) {
108-
echo '<br /><iframe src="' . plugin_page( 'bug_graph_bycategory.php' ) . '&width='.$t_width.'&amp;interval=' . $f_interval .
109-
'&amp;start_date=' . $f_start . '&amp;end_date=' . $f_end .
110-
'&amp;summary=' . $t_summary . '&amp;show_table=1" width="100%" height="80%" frameborder="0"' .
111-
' marginwidth="0" marginheight="0"></iframe>';
107+
echo '<br />';
108+
include( config_get_global('plugin_path' ). plugin_get_current() . DIRECTORY_SEPARATOR .
109+
'pages' . DIRECTORY_SEPARATOR . 'bug_graph_bycategory.php' );
112110
} else {
113-
echo '<br /><img src="' . plugin_page( 'bug_graph_bycategory.php' ) . '&width=600&amp;interval=' . $f_interval .
111+
echo '<br /><img src="' . plugin_page( 'bug_graph_bycategory.php' ) . '&amp;width=600&amp;interval=' . $f_interval .
114112
'&amp;start_date=' . $f_start . '&amp;end_date=' . $f_end .
115113
'&amp;summary=' . $t_summary . '&amp;show_table=0" alt="Bug Graph" />';
116114
}

0 commit comments

Comments
 (0)
Please sign in to comment.