Some better feedback about lack of XSLT functions

This commit is contained in:
moodler 2005-02-08 07:23:04 +00:00
parent 9ff5e44a93
commit 3dcdf943a2

View File

@ -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 "<li>Converting Blackboard export</li>";