Skip to content

Commit

Permalink
MDL-13766, use a better function name
Browse files Browse the repository at this point in the history
  • Loading branch information
dongsheng committed Aug 7, 2008
1 parent 348c350 commit 4ed4389
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions repository/lib.php
Expand Up @@ -282,7 +282,8 @@ function repository_get_option($id, $position){
$ret = (array)unserialize($entry->$option);
return $ret;
}
function repository_instances($context){

function repository_user_instances($context){
global $DB, $CFG, $USER;
$params = array();
$sql = 'SELECT * FROM {repository} r WHERE ';
Expand All @@ -301,6 +302,7 @@ function repository_instances($context){
}
return $repos;
}

function repository_instance($id){
global $DB, $CFG;

Expand Down Expand Up @@ -761,7 +763,7 @@ function _client(){
})();
EOD;

$repos = repository_instances($context);
$repos = repository_user_instances($context);
foreach($repos as $repo) {
$js .= "\r\n";
$js .= 'repository_client_'.$suffix.'.repos.push('.json_encode($repo).');'."\n";
Expand Down

0 comments on commit 4ed4389

Please sign in to comment.