mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-29 10:26:46 -04:00
Remove all non Identity API methods from Identity.php. Created an MY_Session class to provide the user state changes in the session and a login.php helper that has the login form.
This commit is contained in:
@@ -75,7 +75,7 @@ class comment_Core {
|
||||
module::event("comment_add_form", $form);
|
||||
$group->submit("")->value(t("Add"));
|
||||
|
||||
$active = Identity::active();
|
||||
$active = Session::active_user();
|
||||
if (!$active->guest) {
|
||||
$group->inputs["name"]->value($active->full_name)->disabled("disabled");
|
||||
$group->email->value($active->email)->disabled("disabled");
|
||||
|
||||
Reference in New Issue
Block a user