From 3dcdf943a20eab4d0a5b0a32bda7955784fd6139 Mon Sep 17 00:00:00 2001 From: moodler Date: Tue, 8 Feb 2005 07:23:04 +0000 Subject: [PATCH] Some better feedback about lack of XSLT functions --- backup/bb/restore_bb.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/backup/bb/restore_bb.php b/backup/bb/restore_bb.php index 238b8a6745..d1ba5eb2f9 100644 --- a/backup/bb/restore_bb.php +++ b/backup/bb/restore_bb.php @@ -31,16 +31,18 @@ function choose_bb_xsl($manifest){ function blackboard_convert($dir){ global $CFG; - if (!function_exists('xslt_create')) { // XSLT MUST be installed for this to work - return true; - } // Check for a Blackboard manifest file - if(is_file($dir."/imsmanifest.xml")){ + if (is_file($dir."/imsmanifest.xml")){ //Select the proper XSL file $xslt_file = choose_bb_xsl($dir."/imsmanifest.xml"); + if (!function_exists('xslt_create')) { // XSLT MUST be installed for this to work + notify('You need the XSLT library installed in PHP to open this Blackboard file'); + return false; + } + //TODO: Use the get_string function echo "
  • Converting Blackboard export
  • "; -- 2.39.5