Changeset 1299
- Timestamp:
- 11/20/07 14:00:29 (1 year ago)
- Files:
-
- devel/mod/profile/add.php (modified) (1 diff)
- devel/mod/widget/ajax_add_widget.php (modified) (2 diffs)
- devel/mod/widget/edit.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
devel/mod/profile/add.php
r1030 r1299 40 40 $widget->owner = $page_owner; 41 41 $widget->type = $widget_type; 42 $widget->access = "user" . $_SESSION['userid'];42 $widget->access = $CFG->default_access; 43 43 $widget->location = "profile"; 44 44 $widget->location_id = 0; devel/mod/widget/ajax_add_widget.php
r1270 r1299 4 4 @require_once("../../includes.php"); 5 5 6 global $CFG; 7 6 8 $display_id = optional_param('display_id',0,PARAM_INT); 7 9 $widget_type = optional_param('type',''); … … 20 22 } 21 23 22 $widget_id = widget_create("profile",0,$column,$widget_type,$owner, "user" . $_SESSION['userid'],$display_order);24 $widget_id = widget_create("profile",0,$column,$widget_type,$owner,$CFG->default_access,$display_order); 23 25 $widget = get_record('widgets','ident',$widget_id); 24 26 $result = '<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>'; devel/mod/widget/edit.php
r1061 r1299 63 63 64 64 // Save access 65 $widget->access = optional_param('_widget_access', "user".$_SESSION['userid']);65 $widget->access = optional_param('_widget_access',$CFG->default_access); 66 66 update_record('widgets',$widget); 67 67
