26 lines
494 B
PHP
26 lines
494 B
PHP
<?php
|
|
/**
|
|
* Define function for escaping characters.
|
|
*
|
|
* This funcion prevents of creating build-in function, which escapes also accents...
|
|
*
|
|
* @param $value
|
|
*
|
|
* @return string
|
|
*/
|
|
function e($value)
|
|
{
|
|
return htmlspecialchars($value, ENT_QUOTES, 'UTF-8');
|
|
}
|
|
|
|
/**
|
|
* Shortcut for \App\Helpers\Settings::get()
|
|
*
|
|
* @param $key
|
|
* @param null $default
|
|
*
|
|
* @return null|string
|
|
*/
|
|
function setting($key, $default = null) {
|
|
return \App\Helpers\Settings::get($key, $default);
|
|
} |