diff options
Diffstat (limited to 'mod')
-rw-r--r-- | mod/openid.php | 6 | ||||
-rw-r--r-- | mod/parse_url.php | 7 |
2 files changed, 8 insertions, 5 deletions
diff --git a/mod/openid.php b/mod/openid.php index c3c6c11e9..7bf8c299c 100644 --- a/mod/openid.php +++ b/mod/openid.php @@ -103,11 +103,15 @@ function openid_content(&$a) { $_SESSION['cid'] = $a->cid; } - q("UPDATE `user` SET `login_date` = '%s' WHERE `uid` = %d LIMIT 1", + $l = get_language(); + + q("UPDATE `user` SET `login_date` = '%s', `language` = '%s' WHERE `uid` = %d LIMIT 1", dbesc(datetime_convert()), + dbesc($l), intval($_SESSION['uid']) ); + header('X-Account-Management-Status: active; name="' . $a->user['username'] . '"; id="' . $a->user['nickname'] .'"'); if(($a->module !== 'home') && isset($_SESSION['return_url'])) goaway($a->get_baseurl() . '/' . $_SESSION['return_url']); diff --git a/mod/parse_url.php b/mod/parse_url.php index 30371e9f6..15a6aced0 100644 --- a/mod/parse_url.php +++ b/mod/parse_url.php @@ -2,7 +2,6 @@ require_once('library/HTML5/Parser.php'); - function parse_url_content(&$a) { logger('parse_url: ' . $_GET['url']); @@ -25,9 +24,9 @@ function parse_url_content(&$a) { killme(); } - if($url) + if($url) { $s = fetch_url($url); - else { + } else { echo ''; killme(); } @@ -97,4 +96,4 @@ function parse_url_content(&$a) { echo sprintf($template,$url,$title,$text); killme(); -}
\ No newline at end of file +} |