From: dongsheng Date: Wed, 9 Jul 2008 07:46:30 +0000 (+0000) Subject: MDL-15350, bugs fix. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=b2d8bce62a530d76e369d38e02e2f94bcefac65f;p=moodle.git MDL-15350, bugs fix. --- diff --git a/repository/boxnet/repository.class.php b/repository/boxnet/repository.class.php index c61f6fb86c..81e78f9ddb 100755 --- a/repository/boxnet/repository.class.php +++ b/repository/boxnet/repository.class.php @@ -52,7 +52,7 @@ class repository_boxnet extends repository{ // already logged if(!empty($SESSION->box_token)) { $this->box = new boxclient($options['api_key'], $SESSION->box_token); - $this->options['auth_token'] = $SESSION->box_token; + $options['auth_token'] = $SESSION->box_token; $action = 'list'; } else { $this->box = new boxclient($options['api_key'], ''); @@ -61,7 +61,7 @@ class repository_boxnet extends repository{ parent::__construct($repositoryid, $context, $options); } - public function get_listing($path = '0', $search = ''){ + public function get_listing($path = '/', $search = ''){ global $CFG; $list = array(); $ret = array();