summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormoshe weitzman2008-04-22 20:27:14 (GMT)
committer moshe weitzman2008-04-22 20:27:14 (GMT)
commit0e3fcefb8f4ad5dd00a25d17b24e76c75b716c2e (patch)
tree8b05ed65fa8ddb7e64523b223e98032019795185
parent88289985266e3868bf8e0ee1c8e50c9e2d6699b7 (diff)
#238211 by John Morahan. devel admin page loads white if traceback active and no krumo in devel/krumo
-rw-r--r--devel.module5
1 files changed, 4 insertions, 1 deletions
diff --git a/devel.module b/devel.module
index fa248eb..22fdf5d 100644
--- a/devel.module
+++ b/devel.module
@@ -878,9 +878,12 @@ function devel_admin_settings() {
$form['devel_error_handler'] = array('#type' => 'radios',
'#title' => t('Error handler'),
'#default_value' => variable_get('devel_error_handler', DEVEL_ERROR_HANDLER_STANDARD),
- '#options' => array(DEVEL_ERROR_HANDLER_NONE => t('None'), DEVEL_ERROR_HANDLER_STANDARD => t('Standard drupal'), DEVEL_ERROR_HANDLER_BACKTRACE => t('Backtrace')),
+ '#options' => array(DEVEL_ERROR_HANDLER_NONE => t('None'), DEVEL_ERROR_HANDLER_STANDARD => t('Standard drupal')),
'#description' => t('Choose an error handler for your site. <em>Backtrace</em> prints nice debug information when an error is noticed, and you !choose. <strong>Backtrace requires the <a href="!krumo">krumo library</a></strong>. <em>None</em> is a good option when stepping through the site in your debugger.', array('!krumo' => url("http://krumo.sourceforge.net"), '!choose' => l(t('choose to show errors on screen'), 'admin/settings/error-reporting'))),
);
+ if (has_krumo()) {
+ $form['devel_error_handler']['#options'][DEVEL_ERROR_HANDLER_BACKTRACE] = t('Backtrace');
+ }
// Save any old SMTP library
if (variable_get('smtp_library', '') != '' && variable_get('smtp_library', '') != drupal_get_filename('module', 'devel')) {