debugging.php 858 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. /**
  3. * Advanced site settings, debugging section.
  4. */
  5. $debug_options = array(
  6. '0' => elgg_echo('installation:debug:none'),
  7. 'ERROR' => elgg_echo('installation:debug:error'),
  8. 'WARNING' => elgg_echo('installation:debug:warning'),
  9. 'NOTICE' => elgg_echo('installation:debug:notice'),
  10. 'INFO' => elgg_echo('installation:debug:info'),
  11. );
  12. $debug_label = elgg_echo('installation:debug:label');
  13. $debug_input = elgg_view('input/select', array(
  14. 'options_values' => $debug_options,
  15. 'name' => 'debug',
  16. 'value' => elgg_get_config('debug'),
  17. ));
  18. ?>
  19. <fieldset class="elgg-fieldset" id="elgg-settings-advanced-debugging">
  20. <legend><?php echo elgg_echo('admin:legend:debug'); ?></legend>
  21. <div>
  22. <p><?php echo elgg_echo('installation:debug'); ?></p>
  23. <label>
  24. <?php
  25. echo $debug_label;
  26. echo $debug_input;
  27. ?>
  28. </label>
  29. </div>
  30. </fieldset>