~ubuntu-branches/ubuntu/saucy/moodle/saucy

« back to all changes in this revision

Viewing changes to admin/repository.php

  • Committer: Package Import Robot
  • Author(s): Thijs Kinkhorst
  • Date: 2013-09-09 15:22:35 UTC
  • mfrom: (1.1.17) (3.1.29 sid)
  • Revision ID: package-import@ubuntu.com-20130909152235-f5g7gphaseb84qeu
Tags: 2.5.2-1
* New upstream version: 2.5.2.
  - Incorporates S3 security patch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
143
143
            $success = $repositorytype->update_options($settings);
144
144
        } else {
145
145
            $type = new repository_type($plugin, (array)$fromform, $visible);
146
 
            $type->create();
147
146
            $success = true;
 
147
            if (!$repoid = $type->create()) {
 
148
                $success = false;
 
149
            }
148
150
            $data = data_submitted();
149
151
        }
150
152
        if ($success) {