Browse Source

ISLANDORA-322: Reopened ticket, added requirement that it test for a different xsl library.

pull/18/head
Nigel Banks 13 years ago
parent
commit
7e8f2f62c8
  1. 17
      fedora_repository.install

17
fedora_repository.install

@ -1,7 +1,5 @@
<?php
/**
* @file fedora_repository.install
*/
@ -78,6 +76,18 @@ function fedora_repository_requirements($phase) {
$requirements['dom']['serenity'] = REQUIREMENT_OK;
}
// Test for XSLT
$requirements['xsl']['title'] = "PHP XSL extension library";
if (!class_exists('XSLTProcessor')) {
$requirements['xslt']['value'] = t("Not installed");
$requirements['xslt']['severity'] = REQUIREMENT_ERROR;
$requirements['xslt']['description'] = t("Ensure that the PHP XSL extension is installed.");
}
else {
$requirements['xslt']['value'] = t("Installed");
$requirements['xslt']['serenity'] = REQUIREMENT_OK;
}
// Test for Imagick
$requirements['imagick']['title'] = t("Image Magick library");
//if ( ! class_exists('Imagick') ) {
@ -110,8 +120,7 @@ function fedora_repository_requirements($phase) {
if (!fedora_available()) {
$requirements['fedora-repository']['value'] = t("Not available");
$requirements['fedora-repository']['severity'] = REQUIREMENT_ERROR;
$requirements['fedora-repository']['description'] = t('Ensure that Fedora is running and that the <a href="@collection-settings">collection settings</a> are correct.',
array('@collection-settings' => $base_url . '/admin/settings/fedora_repository'));
$requirements['fedora-repository']['description'] = t('Ensure that Fedora is running and that the <a href="@collection-settings">collection settings</a> are correct.', array('@collection-settings' => $base_url . '/admin/settings/fedora_repository'));
}
else {
$requirements['fedora-repository']['value'] = t("Available");

Loading…
Cancel
Save