<?php
namespace tomlib\auth\config;

include_once dirname(__FILE__) . "/config.php";
include_once dirname(__FILE__) . "/object.php";

use tomlib\config as Config;
use tomlib\object as Object;

function load() {
		global $tomlib_auth_config;

		if(is_null($tomlib_auth_config))
				$tomlib_auth_config = Config\get_setting("auth");
}

function get_setting($name) {
		global $tomlib_auth_config;

		load();

		return Object\try_get_element($tomlib_auth_config, $name);
}

<?php
namespace tomlib\auth\config;

include_once dirname(__FILE__) . "/config.php";
include_once dirname(__FILE__) . "/object.php";

use tomlib\config as Config;
use tomlib\object as Object;

function load() {
		global $tomlib_auth_config;

		if(is_null($tomlib_auth_config))
				$tomlib_auth_config = Config\get_setting("auth");
}

function get_setting($name) {
		global $tomlib_auth_config;

		load();

		return Object\try_get_property($tomlib_auth_config, $name);
}

Replace try_get_element call with try_get_property
Replace try_get_element call with try_get_property

Replaced the try_get_element call with a try_get_property call in the get_setting function