mirror of
https://github.com/maxpozdeev/mytinytodo.git
synced 2026-03-11 08:55:27 +00:00
parent
4411e2a8d3
commit
f19573221a
1 changed files with 7 additions and 2 deletions
|
|
@ -73,12 +73,17 @@ function redirectWithHashRoute(array $hash, array $q = [])
|
|||
|
||||
function js_options()
|
||||
{
|
||||
// Here we can use URIs instead of full URLs.
|
||||
$homeUrl = htmlspecialchars(Config::getUrl('url'));
|
||||
if ($homeUrl == '') {
|
||||
$homeUrl = get_mttinfo('mtt_uri');
|
||||
}
|
||||
$a = array(
|
||||
"token" => htmlspecialchars(access_token()),
|
||||
"title" => get_unsafe_mttinfo('title'),
|
||||
"lang" => Lang::instance()->jsStrings(),
|
||||
"mttUrl" => get_mttinfo('mtt_url'),
|
||||
"homeUrl" => get_mttinfo('url'),
|
||||
"mttUrl" => get_mttinfo('mtt_uri'),
|
||||
"homeUrl" => $homeUrl,
|
||||
"apiUrl" => get_mttinfo('api_url'),
|
||||
"needAuth" => need_auth() ? true : false,
|
||||
"isLogged" => is_logged() ? true : false,
|
||||
|
|
|
|||
Loading…
Reference in a new issue