Skip to content

Commit

Permalink
Changed bug_view_page.php nto to include bug_file_upload_inc.php when…
Browse files Browse the repository at this point in the history
… file uploads were disabled - both because they can't do that anyway and because this triggered an error

git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@1656 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
Jeroen Latour committed Dec 10, 2002
1 parent f4f2c58 commit de92dc6
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions bug_view_page.php
Expand Up @@ -6,7 +6,7 @@
# See the README and LICENSE files for details

# --------------------------------------------------------
# $Id: bug_view_page.php,v 1.14 2002-12-08 10:54:53 vboctor Exp $
# $Id: bug_view_page.php,v 1.15 2002-12-10 12:52:09 jlatour Exp $
# --------------------------------------------------------
?>
<?php require_once( 'core.php' ) ?>
Expand Down Expand Up @@ -87,8 +87,8 @@
</td>
</tr>
<tr>
<td class="spacer" colspan="6">
&nbsp;
<td class="spacer" colspan="6">&nbsp;

</td>
</tr>
<tr <?php echo helper_alternate_class() ?>>
Expand All @@ -104,8 +104,8 @@
<td>
<?php echo get_enum_element( 'project_view_state', $t_bug->view_state ) ?>
</td>
<td colspan="2">
&nbsp;
<td colspan="2">&nbsp;

</td>
</tr>
<tr <?php echo helper_alternate_class() ?>>
Expand All @@ -129,8 +129,8 @@
<td>
<?php echo get_enum_element( 'resolution', $t_bug->resolution ) ?>
</td>
<td colspan="2">
&nbsp;
<td colspan="2">&nbsp;

</td>
</tr>
<tr <?php echo helper_alternate_class() ?>>
Expand All @@ -146,8 +146,8 @@
<td>
<?php print_duplicate_id( $t_bug->duplicate_id ) ?>
</td>
<td colspan="2">
&nbsp;
<td colspan="2">&nbsp;

</td>
</tr>

Expand Down Expand Up @@ -180,8 +180,8 @@
<?php } // ON = config_get( 'use_experimental_custom_fields' ) ?>

<tr>
<td class="spacer" colspan="6">
&nbsp;
<td class="spacer" colspan="6">&nbsp;

</td>
</tr>
<tr <?php echo helper_alternate_class() ?>>
Expand Down Expand Up @@ -209,7 +209,7 @@
</td>
</tr>
<?php
$t_show_attachments = ( ( $t_bug->reporter_id == auth_get_current_user_id() ) || access_level_check_greater_or_equal( config_get( 'view_attachments_threshold' ) ) );
$t_show_attachments = ( ( $t_bug->reporter_id == auth_get_current_user_id() ) || access_level_check_greater_or_equal( config_get( 'view_attachments_threshold' ) ) ) && ( ON == config_get( 'allow_file_upload' ) && ini_get( 'file_uploads' ) );

if ( $t_show_attachments ) {
?>
Expand Down

0 comments on commit de92dc6

Please sign in to comment.