MDL-11028 GUI complete, language strings complete, user key creation done. Validation is not yet coded.

This commit is contained in:
nicolasconnault 2007-08-29 11:43:48 +00:00
parent b16393cb07
commit 0f78c4de3d
9 changed files with 80 additions and 39 deletions

View file

@ -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