fix file paths for LOs when previewing - missing absolute path etc, so fail to open/load (modules/xerte/preview.php)
remove legacy mysql_ dependence, remove mysql_close() on non-existant $database_id