Browse Source

Merge pull request #18 from nigelgbanks/ISLANDORA-322

ISLANDORA-322: Can't Install Islandora with out XSLT (PHP4 extension) alt
pull/19/head
Ben Woodhead 14 years ago
parent
commit
4f9665eac0
  1. 19
      fedora_repository.install

19
fedora_repository.install

@ -1,7 +1,5 @@
<?php
/**
* @file fedora_repository.install
*/
@ -56,7 +54,7 @@ function fedora_repository_requirements($phase) {
// Test for Curl
$requirements['curl']['title'] = "PHP Curl extension library";
if ( ! function_exists('curl_init') ) {
if (!function_exists('curl_init')) {
$requirements['curl']['value'] = t("Not installed");
$requirements['curl']['severity'] = REQUIREMENT_ERROR;
$requirements['curl']['description'] = t("Ensure that the PHP Curl extension is installed.");
@ -68,7 +66,7 @@ function fedora_repository_requirements($phase) {
// Test for DOM
$requirements['dom']['title'] = "PHP DOM XML extension library";
if ( ! method_exists('DOMDocument', 'loadHTML') ) {
if (!method_exists('DOMDocument', 'loadHTML')) {
$requirements['dom']['value'] = t("Not installed");
$requirements['dom']['severity'] = REQUIREMENT_ERROR;
$requirements['dom']['description'] = t("Ensure that the PHP DOM XML extension is installed.");
@ -79,11 +77,11 @@ function fedora_repository_requirements($phase) {
}
// Test for XSLT
$requirements['xslt']['title'] = "PHP XSLT extension library";
if ( ! function_exists('xslt_process') ) {
$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 XSLT extension is installed.");
$requirements['xslt']['description'] = t("Ensure that the PHP XSL extension is installed.");
}
else {
$requirements['xslt']['value'] = t("Installed");
@ -93,7 +91,7 @@ function fedora_repository_requirements($phase) {
// Test for Imagick
$requirements['imagick']['title'] = t("Image Magick library");
//if ( ! class_exists('Imagick') ) {
if ( ! file_exists('convert') ) {
if (!file_exists('convert')) {
$requirements['imagick']['value'] = t("Not installed");
$requirements['imagick']['severity'] = REQUIREMENT_ERROR;
$requirements['imagick']['description'] = t('Ensure that the Image Magick library is installed.');
@ -105,7 +103,7 @@ function fedora_repository_requirements($phase) {
// Test for Kakadu
$requirements['kakadu']['title'] = t("Kakadu library");
if ( ! file_exists('kdu_compress') ) {
if (!file_exists('kdu_compress')) {
$requirements['kakadu']['value'] = t("Not installed");
$requirements['kakadu']['severity'] = REQUIREMENT_ERROR;
$requirements['kakadu']['description'] = t('Ensure that the Kakadu library is installed.');
@ -122,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