Skip to content

Commit

Permalink
fix: Error "undefined" dependency of CFG_ENABLED
Browse files Browse the repository at this point in the history
  • Loading branch information
alex3rq committed Nov 17, 2020
1 parent 52eab9d commit 77a35cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MantisBTModernDarkTheme.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ function account_update_form( $p_event, $p_user_id )
'<label for="DarkModeSwitch">Dark Mode</label>' .
'</td>' .
'<td>' .
'<input id="DarkModeSwitch" type="checkbox" name="' . CFG_ENABLED . '" value="1" ' . ( $this->is_enabled() ? 'checked' : '' ) . '/>' .
'<input id="DarkModeSwitch" type="checkbox" name="' . self::CFG_ENABLED . '" value="1" ' . ( $this->is_enabled() ? 'checked' : '' ) . '/>' .
'</td>' .
'</tr>';
}

function account_update( $p_event, $p_user_id )
{
config_set( self::CFG_ENABLED, gpc_get_bool( CFG_ENABLED, false ), $p_user_id, ALL_PROJECTS );
config_set( self::CFG_ENABLED, gpc_get_bool( self::CFG_ENABLED, false ), $p_user_id, ALL_PROJECTS );
}
}

0 comments on commit 77a35cc

Please sign in to comment.