Permalink
Browse files

Use ConfigurationOptionNotFound exception in adm_config_set.php

  • Loading branch information...
1 parent 4c1ec8d commit 9b45d3e664e1530dab209502501f4e15c0d9bda4 @davidhicks davidhicks committed Sep 11, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 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

0 comments on commit 9b45d3e

Please sign in to comment.