From: vyshane Date: Tue, 19 Dec 2006 07:00:14 +0000 (+0000) Subject: Making sure that restore views work in xhtml strict 1.0. MDL-7861. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=ac211373790011a68af475a7695e91d183dd19dc;p=moodle.git Making sure that restore views work in xhtml strict 1.0. MDL-7861. --- diff --git a/backup/restorelib.php b/backup/restorelib.php index 706aafd431..e050059b71 100644 --- a/backup/restorelib.php +++ b/backup/restorelib.php @@ -5564,7 +5564,7 @@ //Into new course if ($restore->restoreto == 2) { if (!defined('RESTORE_SILENTLY')) { - echo "
  • ".get_string("creatingsections").'
  • '; + echo "
  • ".get_string("creatingsections"); } if (!$status = restore_create_sections($restore,$xml_file)) { if (!defined('RESTORE_SILENTLY')) { @@ -5574,10 +5574,13 @@ return false; } } + if (!defined('RESTORE_SILENTLY')) { + echo '
  • '; + } //Into existing course } else if ($restore->restoreto == 0 or $restore->restoreto == 1) { if (!defined('RESTORE_SILENTLY')) { - echo "
  • ".get_string("checkingsections").'
  • '; + echo "
  • ".get_string("checkingsections"); } if (!$status = restore_create_sections($restore,$xml_file)) { if (!defined('RESTORE_SILENTLY')) { @@ -5587,6 +5590,9 @@ return false; } } + if (!defined('RESTORE_SILENTLY')) { + echo '
  • '; + } //Error } else { if (!defined('RESTORE_SILENTLY')) { @@ -5683,6 +5689,9 @@ return false; } } + if (!defined('RESTORE_SILENTLY')) { + echo ''; + } } } @@ -5691,7 +5700,7 @@ if ($status and ($restore->mods['quiz']->restore)) { include_once("$CFG->dirroot/question/restorelib.php"); if (!defined('RESTORE_SILENTLY')) { - echo "
  • ".get_string("creatingcategoriesandquestions"); + echo "
  • ".get_string("creatingcategoriesandquestions"); echo ""; } } + if (!defined('RESTORE_SILENTLY')) { + echo '
  • '; + } } //Now create course files as needed if ($status and ($restore->course_files)) { if (!defined('RESTORE_SILENTLY')) { - echo "
  • ".get_string("copyingcoursefiles")."
  • "; + echo "
  • ".get_string("copyingcoursefiles")."
  • "; } if (!$status = restore_course_files($restore)) { if (empty($status)) { @@ -5749,7 +5761,7 @@ //Inform about user dirs created from backup if (!defined('RESTORE_SILENTLY')) { echo ""; } } @@ -5776,7 +5788,7 @@ //Now create scales as needed if ($status) { if (!defined('RESTORE_SILENTLY')) { - echo "
  • ".get_string("creatingscales").'
  • '; + echo "
  • ".get_string("creatingscales"); } if (!$status = restore_create_scales($restore,$xml_file)) { if (!defined('RESTORE_SILENTLY')) { @@ -5786,12 +5798,15 @@ return false; } } + if (!defined('RESTORE_SILENTLY')) { + echo '
  • '; + } } //Now create groups as needed if ($status) { if (!defined('RESTORE_SILENTLY')) { - echo "
  • ".get_string("creatinggroups").'
  • '; + echo "
  • ".get_string("creatinggroups"); } if (!$status = restore_create_groups($restore,$xml_file)) { if (!defined('RESTORE_SILENTLY')) { @@ -5801,12 +5816,15 @@ return false; } } + if (!defined('RESTORE_SILENTLY')) { + echo '
  • '; + } } //Now create events as needed if ($status) { if (!defined('RESTORE_SILENTLY')) { - echo "
  • ".get_string("creatingevents").'
  • '; + echo "
  • ".get_string("creatingevents"); } if (!$status = restore_create_events($restore,$xml_file)) { if (!defined('RESTORE_SILENTLY')) { @@ -5816,12 +5834,15 @@ return false; } } + if (!defined('RESTORE_SILENTLY')) { + echo '
  • '; + } } //Now create course modules as needed if ($status) { if (!defined('RESTORE_SILENTLY')) { - echo "
  • ".get_string("creatingcoursemodules").'
  • '; + echo "
  • ".get_string("creatingcoursemodules"); } if (!$status = restore_create_modules($restore,$xml_file)) { if (!defined('RESTORE_SILENTLY')) { @@ -5831,12 +5852,15 @@ return false; } } + if (!defined('RESTORE_SILENTLY')) { + echo '
  • '; + } } //Now create gradebook as needed -- AFTER modules!!! if ($status) { if (!defined('RESTORE_SILENTLY')) { - echo "
  • ".get_string("creatinggradebook").'
  • '; + echo "
  • ".get_string("creatinggradebook"); } if (!$status = restore_create_gradebook($restore,$xml_file)) { if (!defined('RESTORE_SILENTLY')) { @@ -5846,6 +5870,9 @@ return false; } } + if (!defined('RESTORE_SILENTLY')) { + echo '
  • '; + } } //Bring back the course blocks -- do it AFTER the modules!!! @@ -5853,7 +5880,7 @@ //If we are deleting and bringing into a course or making a new course, same situation if($restore->restoreto == 0 || $restore->restoreto == 2) { if (!defined('RESTORE_SILENTLY')) { - echo '
  • '.get_string('creatingblocks').'
  • '; + echo '
  • '.get_string('creatingblocks'); } $course_header->blockinfo = !empty($course_header->blockinfo) ? $course_header->blockinfo : NULL; if (!$status = restore_create_blocks($restore, $info->backup_block_format, $course_header->blockinfo, $xml_file)) { @@ -5864,6 +5891,9 @@ return false; } } + if (!defined('RESTORE_SILENTLY')) { + echo '
  • '; + } } } @@ -5871,7 +5901,7 @@ //If we are deleting and bringing into a course or making a new course, same situation if($restore->restoreto == 0 || $restore->restoreto == 2) { if (!defined('RESTORE_SILENTLY')) { - echo '
  • '.get_string('courseformatdata').'
  • '; + echo '
  • '.get_string('courseformatdata'); } if (!$status = restore_set_format_data($restore, $xml_file)) { $error = "Error while setting the course format data"; @@ -5882,13 +5912,16 @@ return false; } } + if (!defined('RESTORE_SILENTLY')) { + echo '
  • '; + } } } //Now create log entries as needed if ($status and ($restore->logs)) { if (!defined('RESTORE_SILENTLY')) { - echo "
  • ".get_string("creatinglogentries"); + echo "
  • ".get_string("creatinglogentries"); } if (!$status = restore_create_logs($restore,$xml_file)) { if (!defined('RESTORE_SILENTLY')) { @@ -5898,12 +5931,15 @@ return false; } } + if (!defined('RESTORE_SILENTLY')) { + echo '
  • '; + } } //Now, if all is OK, adjust the instance field in course_modules !! if ($status) { if (!defined('RESTORE_SILENTLY')) { - echo "
  • ".get_string("checkinginstances").'
  • '; + echo "
  • ".get_string("checkinginstances"); } if (!$status = restore_check_instances($restore)) { if (!defined('RESTORE_SILENTLY')) { @@ -5913,12 +5949,15 @@ return false; } } + if (!defined('RESTORE_SILENTLY')) { + echo '
  • '; + } } //Now, if all is OK, adjust activity events if ($status) { if (!defined('RESTORE_SILENTLY')) { - echo "
  • ".get_string("refreshingevents").'
  • '; + echo "
  • ".get_string("refreshingevents"); } if (!$status = restore_refresh_events($restore)) { if (!defined('RESTORE_SILENTLY')) { @@ -5928,6 +5967,9 @@ return false; } } + if (!defined('RESTORE_SILENTLY')) { + echo '
  • '; + } } //Now, if all is OK, adjust inter-activity links @@ -5943,6 +5985,9 @@ return false; } } + if (!defined('RESTORE_SILENTLY')) { + echo ''; + } } //Now, with backup files prior to version 2005041100, @@ -5959,6 +6004,9 @@ return false; } } + if (!defined('RESTORE_SILENTLY')) { + echo ''; + } } /******************************************************************************* @@ -5974,7 +6022,7 @@ // - add user as teacher if ($status) { if (!defined('RESTORE_SILENTLY')) { - echo "
  • ".get_string("checkingcourse").'
  • '; + echo "
  • ".get_string("checkingcourse"); } //modinfo field rebuild_course_cache($restore->course_id); @@ -5995,12 +6043,15 @@ notify('Could not find a legacy teacher role. You might need your moodle admin to assign a role with editing privilages to this course.'); } } + if (!defined('RESTORE_SILENTLY')) { + echo '
  • '; + } } //Cleanup temps (files and db) if ($status) { if (!defined('RESTORE_SILENTLY')) { - echo "
  • ".get_string("cleaningtempdata").'
  • '; + echo "
  • ".get_string("cleaningtempdata"); } if (!$status = clean_temp_data ($restore)) { if (!defined('RESTORE_SILENTLY')) { @@ -6010,10 +6061,13 @@ return false; } } + if (!defined('RESTORE_SILENTLY')) { + echo '
  • '; + } } if ($status = restore_close_html($restore)){ - echo "
  • Closing the Restorelog.html file.
  • "; + echo '
  • Closing the Restorelog.html file.
  • '; } if (!defined('RESTORE_SILENTLY')) { diff --git a/mod/forum/restorelib.php b/mod/forum/restorelib.php index 4ed1544789..61101a3e7b 100644 --- a/mod/forum/restorelib.php +++ b/mod/forum/restorelib.php @@ -96,7 +96,7 @@ //Do some output if (!defined('RESTORE_SILENTLY')) { - echo "
  • ".get_string("modulename","forum")." \"".format_string(stripslashes($forum->name),true)."\""; + echo "
  • ".get_string("modulename","forum")." \"".format_string(stripslashes($forum->name),true)."\"
  • "; } backup_flush(300);