mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-11028 GUI complete, language strings complete, user key creation done. Validation is not yet coded.
This commit is contained in:
parent
b16393cb07
commit
0f78c4de3d
9 changed files with 80 additions and 39 deletions
|
@ -352,8 +352,6 @@ function grade_build_nav($path, $pagename=null, $id=null) {
|
|||
|
||||
$path_elements_count = count($path_elements);
|
||||
|
||||
$last_element = $path_elements[$path_elements_count-1]; // Should be the filename (including extension)
|
||||
|
||||
// First link is always 'grade'
|
||||
$navlinks = array();
|
||||
$navlinks[] = array('name' => $strgrades,
|
||||
|
@ -377,6 +375,11 @@ function grade_build_nav($path, $pagename=null, $id=null) {
|
|||
|
||||
$navlink4 = null;
|
||||
|
||||
// Remove file extensions from filenames
|
||||
foreach ($path_elements as $key => $filename) {
|
||||
$path_elements[$key] = str_replace('.php', '', $filename);
|
||||
}
|
||||
|
||||
// Second level links
|
||||
switch ($path_elements[1]) {
|
||||
case 'edit': // No link
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue