mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 04:30:15 +01:00
Naming, people, naming ... keep it clear but minim
This commit is contained in:
parent
915d864c44
commit
d1465c3d12
@ -44,7 +44,7 @@
|
||||
|
||||
$navigation = "";
|
||||
if ($course->category) {
|
||||
$navigation = "<A HREF=\"../../course/view.php?id=$course->id\">$course->shortname</A> ->";
|
||||
$navigation = "<a href=\"../../course/view.php?id=$course->id\">$course->shortname</a> ->";
|
||||
}
|
||||
|
||||
$strlessons = get_string("modulenameplural", "lesson");
|
||||
@ -53,20 +53,20 @@
|
||||
|
||||
// ... print the header and...
|
||||
print_header("$course->shortname: $lesson->name", "$course->fullname",
|
||||
"$navigation <A HREF=index.php?id=$course->id>$strlessons</A> ->
|
||||
<A HREF=\"view.php?id=$cm->id\">$lesson->name</A>",
|
||||
"$navigation <a href=index.php?id=$course->id>$strlessons</a> ->
|
||||
<a href=\"view.php?id=$cm->id\">$lesson->name</a>",
|
||||
"", "<style type=\"text/css\">@import url($CFG->wwwroot/mod/lesson/styles.php);</style>", true);
|
||||
|
||||
//...get the action
|
||||
$action = required_param('action');
|
||||
|
||||
// include the appropriate action (check to make sure the file is there first)
|
||||
if (file_exists('lessonactions/'.$action.'.php')) {
|
||||
include('lessonactions/'.$action.'.php');
|
||||
if (file_exists($CFG->dirroot.'/mod/lesson/action/'.$action.'.php')) {
|
||||
include($CFG->dirroot.'/mod/lesson/action/'.$action.'.php');
|
||||
} else {
|
||||
error("Fatal Error: Unknown Action: ".$action."\n");
|
||||
error("Fatal Error: Unknown action\n");
|
||||
}
|
||||
|
||||
print_footer($course);
|
||||
|
||||
?>
|
||||
?>
|
||||
|
Loading…
x
Reference in New Issue
Block a user