store enabled exts in a config file, rather than moving directories around
This commit is contained in:
commit
75abdc7c04
@ -38,7 +38,7 @@ class NumericScore extends Extension {
|
|||||||
|
|
||||||
public function onUserPageBuilding(UserPageBuildingEvent $event) {
|
public function onUserPageBuilding(UserPageBuildingEvent $event) {
|
||||||
global $page, $user;
|
global $page, $user;
|
||||||
if($user->can("edit_other_votes")) {
|
if($user->can("edit_other_vote")) {
|
||||||
$html = $this->theme->get_nuller_html($event->display_user);
|
$html = $this->theme->get_nuller_html($event->display_user);
|
||||||
$page->add_block(new Block("Votes", $html, "main", 60));
|
$page->add_block(new Block("Votes", $html, "main", 60));
|
||||||
}
|
}
|
||||||
|
@ -203,7 +203,15 @@ class UserPage extends Extension {
|
|||||||
$event->add_stats("Joined: $h_join_date", 10);
|
$event->add_stats("Joined: $h_join_date", 10);
|
||||||
|
|
||||||
$av = $event->display_user->get_avatar_html();
|
$av = $event->display_user->get_avatar_html();
|
||||||
if($av) $event->add_stats($av, 0);
|
if($av) {
|
||||||
|
$event->add_stats($av, 0);
|
||||||
|
}
|
||||||
|
else if((
|
||||||
|
$config->get_string("avatar_host") == "gravatar") &&
|
||||||
|
($user->id == $event->display_user->id)
|
||||||
|
) {
|
||||||
|
$event->add_stats("No avatar? This gallery uses <a href='http://gravatar.com'>Gravatar</a> for avatar hosting, use the same email address here and there to have your avatar synced", 0);
|
||||||
|
}
|
||||||
|
|
||||||
ksort($event->stats);
|
ksort($event->stats);
|
||||||
$this->theme->display_user_page($event->display_user, $event->stats);
|
$this->theme->display_user_page($event->display_user, $event->stats);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user