Changeset 468
- Timestamp:
- 07/22/06 16:21:36 (2 years ago)
- Files:
-
- devel/lib/templates.php (modified) (2 diffs)
- devel/mod/blog/lib.php (modified) (2 diffs)
- devel/mod/community/lib.php (modified) (3 diffs)
- devel/mod/file/lib.php (modified) (2 diffs)
- devel/mod/friend/lib.php (modified) (2 diffs)
- devel/mod/newsclient/lib.php (modified) (2 diffs)
- devel/mod/profile/lib.php (modified) (2 diffs)
- devel/mod/template/lib.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
devel/lib/templates.php
r457 r468 474 474 'html' => "<li><a href=\"" . $CFG->wwwroot . "login/logout.php\">" . gettext("Log off") . "</a></li>"); 475 475 476 if ( context == "account") {476 if (defined("context") && context == "account") { 477 477 $PAGE->menu_sub[] = array( 478 478 'name' => 'user:edit', … … 485 485 } 486 486 487 if ( context == "admin" && logged_on && run("users:flags:get",array("admin", $_SESSION['userid']))) {487 if (defined("context") && context == "admin" && logged_on && run("users:flags:get",array("admin", $_SESSION['userid']))) { 488 488 $PAGE->menu_sub[] = array( 489 489 'name' => 'admin', devel/mod/blog/lib.php
r417 r468 12 12 if (isloggedin()) { 13 13 14 if ( context == "weblog" && $page_owner == $_SESSION['userid']) {14 if (defined("context") && context == "weblog" && $page_owner == $_SESSION['userid']) { 15 15 16 16 $PAGE->menu[] = array( 'name' => 'blog', … … 26 26 27 27 // submenu 28 if ( context == "weblog") {28 if (defined("context") && context == "weblog") { 29 29 30 30 if ($page_owner != -1) { devel/mod/community/lib.php
r400 r468 13 13 if ($usertype == "community") { 14 14 15 if ( context == "profile") {15 if (defined("context") && context == "profile") { 16 16 17 17 $PAGE->menu_sub[] = array( 'name' => 'profile:edit', … … 32 32 33 33 } 34 if ( context == "profile" || context == "network") {34 if (defined("context") && (context == "profile" || context == "network")) { 35 35 $PAGE->menu_sub[] = array( 'name' => 'community:requests', 36 36 'html' => a_hrefg("{$CFG->wwwroot}_communities/requests.php?profile_id=$page_owner", … … 45 45 } else if ($usertype == "person") { 46 46 47 if ( context == "network") {47 if (defined("context") && context == "network") { 48 48 49 49 $PAGE->menu_sub[] = array( 'name' => 'community', devel/mod/file/lib.php
r322 r468 10 10 11 11 if (isloggedin()) { 12 if ( context == "files" && $page_owner == $_SESSION['userid']) {12 if (defined("context") && context == "files" && $page_owner == $_SESSION['userid']) { 13 13 $PAGE->menu[] = array( 'name' => 'file', 14 14 'html' => "<li><a href=\"{$CFG->wwwroot}{$_SESSION['username']}/files/\" class=\"selected\" >" .gettext("Your Files").'</a></li>'); … … 19 19 } 20 20 21 if ( context == "files") {21 if (defined("context") && context == "files") { 22 22 23 23 $files_username = run("users:id_to_name",$page_owner); devel/mod/friend/lib.php
r322 r468 10 10 11 11 if (isloggedin()) { 12 if ( context == "network" && $page_owner == $_SESSION['userid']) {12 if (defined("context") && context == "network" && $page_owner == $_SESSION['userid']) { 13 13 14 14 $PAGE->menu[] = array( 'name' => 'network', … … 20 20 } 21 21 22 if ( context == "network") {22 if (defined("context") && context == "network") { 23 23 24 24 if (run("users:type:get", $page_owner) == "person") { devel/mod/newsclient/lib.php
r430 r468 10 10 11 11 if (isloggedin()) { 12 if ( context == "resources" && $page_owner == $_SESSION['userid']) {12 if (defined("context") && context == "resources" && $page_owner == $_SESSION['userid']) { 13 13 $PAGE->menu[] = array( 'name' => 'resources', 14 14 'html' => "<li><a href=\"{$CFG->wwwroot}{$_SESSION['username']}/feeds/\" class=\"selected\" >" .gettext("Your Resources").'</a></li>'); … … 21 21 } 22 22 23 if ( context=="resources") {23 if (defined("context") && context == "resources") { 24 24 25 25 if ($page_owner != -1) { devel/mod/profile/lib.php
r466 r468 12 12 13 13 if (isloggedin()) { 14 if ( context === "profile" && $pgowner == $_SESSION['userid']) {14 if (defined("context") && context == "profile" && $pgowner == $_SESSION['userid']) { 15 15 $PAGE->menu[] = array( 'name' => 'profile:me', 16 16 'html' => '<li><a href="'.$CFG->wwwroot.$_SESSION['username'].'" class="selected">'.gettext("Your Profile").'</a></li>'); … … 20 20 } 21 21 22 if (profile_permissions_check("profile") && context === "profile") {22 if (profile_permissions_check("profile") && defined("context") && context == "profile") { 23 23 24 24 if (run("users:type:get", $pgowner) == "person") { devel/mod/template/lib.php
r269 r468 9 9 $page_owner = $profile_id; 10 10 11 if ( context == "account") {11 if (defined("context") && context == "account") { 12 12 if ($page_owner == $_SESSION['userid'] && $page_owner != -1) { 13 13 $PAGE->menu_sub[] = array( 'name' => 'template:change',
