Skip to content

Commit

Permalink
Replace all instances of wiki_enabled
Browse files Browse the repository at this point in the history
Follow-up to db4c72a where not all
instances of wiki_enabled were replaced. wiki_api.php is no longer
required by any script when the g_wiki_enable option is OFF.
  • Loading branch information
davidhicks committed Jun 20, 2009
1 parent 37ebe80 commit ff31b8e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bug_view_advanced_page.php
Expand Up @@ -90,7 +90,7 @@
<?php
}

if ( wiki_enabled() ) {
if( config_get_global( 'wiki_enable' ) == ON ) {
print_bracket_link( 'wiki.php?id='.$f_bug_id, lang_get( 'wiki' ) );
}

Expand Down
2 changes: 1 addition & 1 deletion bug_view_page.php
Expand Up @@ -91,7 +91,7 @@
<?php
}

if ( wiki_enabled() ) {
if( config_get_global( 'wiki_enable' ) == ON ) {
?>
<?php print_bracket_link( 'wiki.php?id='.$f_bug_id, lang_get( 'wiki' ) ) ?>
<?php
Expand Down
2 changes: 1 addition & 1 deletion core/html_api.php
Expand Up @@ -1554,7 +1554,7 @@ function html_button_bug_delete( $p_bug_id ) {
* @return null
*/
function html_button_wiki( $p_bug_id ) {
if( wiki_enabled() ) {
if( config_get_global( 'wiki_enable' ) == ON ) {
if( access_has_bug_level( config_get( 'update_bug_threshold' ), $p_bug_id ) ) {
html_button( 'wiki.php', lang_get_defaulted( 'Wiki' ), array( 'id' => $p_bug_id, 'type' => 'issue' ), 'get' );
}
Expand Down

0 comments on commit ff31b8e

Please sign in to comment.