mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
Some better feedback about lack of XSLT functions
This commit is contained in:
parent
9ff5e44a93
commit
3dcdf943a2
@ -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>";
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user