Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use ConfigurationOptionNotFound exception in adm_config_set.php

  • Loading branch information...
commit 9b45d3e664e1530dab209502501f4e15c0d9bda4 1 parent 4c1ec8d
@davidhicks davidhicks authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 public/adm_config_set.php
View
4 public/adm_config_set.php
@@ -34,6 +34,7 @@
* @uses utility_api.php
*/
+use MantisBT\Exception\Configuration\ConfigurationOptionNotFound;
use MantisBT\Exception\Field\EmptyField;
require_once( 'core.php' );
@@ -68,8 +69,7 @@
# make sure that configuration option specified is a valid one.
$t_not_found_value = '***CONFIG OPTION NOT FOUND***';
if ( config_get_global( $f_config_option, $t_not_found_value ) === $t_not_found_value ) {
- error_parameters( $f_config_option );
- trigger_error( ERROR_CONFIG_OPT_NOT_FOUND, ERROR );
+ throw new ConfigurationOptionNotFound( $f_config_option );
}
# make sure that configuration option specified can be stored in the database
Please sign in to comment.
Something went wrong with that request. Please try again.