Ignore:
Timestamp:
May 2, 2016, 12:09:23 PM (3 years ago)
Author:
jrpelegrina
Message:

Updated to moodle 3.0.3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • moodle/trunk/fuentes/lib/ajax/getsiteadminbranch.php

    r136 r1331  
    3030
    3131// This should be accessed by only valid logged in user.
    32 if (!isloggedin() or isguestuser()) {
    33     die('Invalid access.');
    34 }
     32require_login(null, false);
    3533
    3634// This identifies the type of the branch we want to get. Make sure it's SITE_ADMIN.
    3735$branchtype = required_param('type', PARAM_INT);
    3836if ($branchtype !== navigation_node::TYPE_SITE_ADMIN) {
    39     die('Wrong node type passed.');
     37    throw new coding_exception('Incorrect node type passed');
    4038}
    4139
Note: See TracChangeset for help on using the changeset viewer.