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/auth/manual/auth.php

    r136 r1331  
    4747     * Constructor.
    4848     */
    49     function auth_plugin_manual() {
     49    public function __construct() {
    5050        $this->authtype = 'manual';
    5151        $config = get_config(self::COMPONENT_NAME);
    5252        $legacyconfig = get_config(self::LEGACY_COMPONENT_NAME);
    5353        $this->config = (object)array_merge((array)$legacyconfig, (array)$config);
     54    }
     55
     56    /**
     57     * Old syntax of class constructor for backward compatibility.
     58     */
     59    public function auth_plugin_manual() {
     60        self::__construct();
    5461    }
    5562
     
    234241            } else {
    235242                $DB->set_field("user", "confirmed", 1, array("id"=>$user->id));
    236                 if ($user->firstaccess == 0) {
    237                     $DB->set_field("user", "firstaccess", time(), array("id"=>$user->id));
    238                 }
    239243                return AUTH_CONFIRM_OK;
    240244            }
Note: See TracChangeset for help on using the changeset viewer.