Subversion Repositories oidplus

Compare Revisions

Regard whitespace Rev 1177 → Rev 1282

/trunk/includes/classes/OIDplusBaseConfig.class.php
47,6 → 47,12
* @return mixed|null
*/
public function getValue(string $name, $default=null) {
if ($name == 'SERVER_SECRET') {
$caller_class = debug_backtrace()[1]['class'];
if (!str_starts_with($caller_class, 'ViaThinkSoft\\OIDplus\\')) {
throw new OIDplusException(_L('Outdated plugin: Calling %1 from a plugin is deprecated. Please use %2 instead', 'SERVER_SECRET', 'OIDplus::authUtils()->makeSecret()'));
}
}
return $this->exists($name) ? $this->data[$name] : $default;
}