courses/normalize-sections.php 1 location
|
@@ 67-73 (lines=7) @@
|
| 64 |
|
$links .= "<a target=\"_parent\" href=\"{$_SESSION[CANVAS_INSTANCE_URL]}/courses/{$course['id']}/sections/{$response['id']}\">{$response['name']}</a>"; |
| 65 |
|
|
| 66 |
|
/* too many sections to (easily) normalize */ |
| 67 |
|
} else { |
| 68 |
|
$toolbox->smarty_addMessage( |
| 69 |
|
'Multiple Sections', |
| 70 |
|
"<a target=\"_parent\" href=\"{$_SESSION[CANVAS_INSTANCE_URL]}/courses/{$course['id']}/settings\">{$course['name']}</a> has more than one section, which means that standard singleton-section normalization does not apply.", |
| 71 |
|
NotificationMessage::WARNING |
| 72 |
|
); |
| 73 |
|
} |
| 74 |
|
} catch (Exception $e) { |
| 75 |
|
$toolbox->exceptionErrorMessage($e); |
| 76 |
|
} |
courses/create-courses.php 1 location
|
@@ 202-208 (lines=7) @@
|
| 199 |
|
"has been created as a clone of <a target=\"_parent\" href=\"{$_SESSION[CANVAS_INSTANCE_URL]}/courses/$sourceId\">$sourceName</a>. Course content is being <a target=\"_parent\" href=\"{$_SESSION[CANVAS_INSTANCE_URL]}/courses/{$course['id']}/content_migrations\">migrated</a> right now.", |
| 200 |
|
NotificationMessage::GOOD |
| 201 |
|
); |
| 202 |
|
} else { |
| 203 |
|
$toolbox->smarty_addMessage( |
| 204 |
|
"<a target=\"_parent\" href=\"{$_SESSION[CANVAS_INSTANCE_URL]}/courses/{$course['id']}\">{$course['name']}</a>", |
| 205 |
|
"has been created.", |
| 206 |
|
NotificationMessage::GOOD |
| 207 |
|
); |
| 208 |
|
} |
| 209 |
|
} catch (Exception $e) { |
| 210 |
|
$toolbox->exceptionErrorMessage($e); |
| 211 |
|
} |