Browse Source

Add check for PHP XSLT Processor extension.

When the PHP XSLT Processor extension is not loaded, Islandora will
silently fail when attempting to add new objects.  This changeset
adds a check in the Islandora hook_requirements() hook for the
XSLTProcessor class.  If it isn't found, a message is thrown.
pull/274/head
Peter Murray 12 years ago
parent
commit
7a52d7ec1d
  1. 2
      includes/admin.form.inc
  2. 2
      islandora.install

2
includes/admin.form.inc

@ -19,7 +19,7 @@
function islandora_repository_admin(array $form, array &$form_state) {
module_load_include('inc', 'islandora', 'includes/utilities');
drupal_add_css(drupal_get_path('module', 'islandora') . '/css/islandora.admin.css');
$form = array();
if (isset($form_state['values']['islandora_base_url'])) {
$url = $form_state['values']['islandora_base_url'];

2
islandora.install

@ -17,7 +17,7 @@ function islandora_requirements($phase) {
$requirements['islandora_xsltprocessor']['title'] = $t('Islandora XSLTProcessor Prerequisite');
$requirements['islandora_xsltprocessor']['value'] = $t('Not installed');
$link = l($t('PHP XSL extension'), 'http://us2.php.net/manual/en/book.xsl.php', array('attributes' => array('target'=>'_blank')));
$requirements['islandora_xsltprocessor']['description'] = $t('The !xsllink is required. Check your installed PHP extensions and php.ini file.', array('!xsllink' => $link)),'error');
$requirements['islandora_xsltprocessor']['description'] = $t('The !xsllink is required. Check your installed PHP extensions and php.ini file.', array('!xsllink' => $link));
$requirements['islandora_xsltprocessor']['severity'] = REQUIREMENT_ERROR;
}

Loading…
Cancel
Save