Permalink
Browse files

store enabled exts in a config file, rather than moving directories a…

…round
  • Loading branch information...
2 parents 67f1c1c + b17d8b2 commit 75abdc7c0473bde0136a3b56988446ec3e9cbd57 @shish committed Mar 31, 2012
Showing with 10 additions and 2 deletions.
  1. +1 −1 ext/numeric_score/main.php
  2. +9 −1 ext/user/main.php
  3. 0 {ext/simpletest → lib}/simpletest/HELP_MY_TESTS_DONT_WORK_ANYMORE
  4. 0 {ext/simpletest → lib}/simpletest/LICENSE
  5. 0 {ext/simpletest → lib}/simpletest/README
  6. 0 {ext/simpletest → lib}/simpletest/VERSION
  7. 0 {ext/simpletest → lib}/simpletest/arguments.php
  8. 0 {ext/simpletest → lib}/simpletest/authentication.php
  9. 0 {ext/simpletest → lib}/simpletest/autorun.php
  10. 0 {ext/simpletest → lib}/simpletest/browser.php
  11. 0 {ext/simpletest → lib}/simpletest/collector.php
  12. 0 {ext/simpletest → lib}/simpletest/compatibility.php
  13. 0 {ext/simpletest → lib}/simpletest/cookies.php
  14. 0 {ext/simpletest → lib}/simpletest/default_reporter.php
  15. 0 {ext/simpletest → lib}/simpletest/detached.php
  16. 0 {ext/simpletest → lib}/simpletest/dumper.php
  17. 0 {ext/simpletest → lib}/simpletest/eclipse.php
  18. 0 {ext/simpletest → lib}/simpletest/encoding.php
  19. 0 {ext/simpletest → lib}/simpletest/errors.php
  20. 0 {ext/simpletest → lib}/simpletest/exceptions.php
  21. 0 {ext/simpletest → lib}/simpletest/expectation.php
  22. 0 {ext/simpletest → lib}/simpletest/extensions/pear_test_case.php
  23. 0 {ext/simpletest → lib}/simpletest/extensions/testdox.php
  24. 0 {ext/simpletest → lib}/simpletest/extensions/testdox/test.php
  25. 0 {ext/simpletest → lib}/simpletest/form.php
  26. 0 {ext/simpletest → lib}/simpletest/frames.php
  27. 0 {ext/simpletest → lib}/simpletest/http.php
  28. 0 {ext/simpletest → lib}/simpletest/invoker.php
  29. 0 {ext/simpletest → lib}/simpletest/mock_objects.php
  30. 0 {ext/simpletest → lib}/simpletest/page.php
  31. 0 {ext/simpletest → lib}/simpletest/php_parser.php
  32. 0 {ext/simpletest → lib}/simpletest/recorder.php
  33. 0 {ext/simpletest → lib}/simpletest/reflection_php4.php
  34. 0 {ext/simpletest → lib}/simpletest/reflection_php5.php
  35. 0 {ext/simpletest → lib}/simpletest/remote.php
  36. 0 {ext/simpletest → lib}/simpletest/reporter.php
  37. 0 {ext/simpletest → lib}/simpletest/scorer.php
  38. 0 {ext/simpletest → lib}/simpletest/selector.php
  39. 0 {ext/simpletest → lib}/simpletest/shell_tester.php
  40. 0 {ext/simpletest → lib}/simpletest/simpletest.php
  41. 0 {ext/simpletest → lib}/simpletest/socket.php
  42. 0 {ext/simpletest → lib}/simpletest/tag.php
  43. 0 {ext/simpletest → lib}/simpletest/test_case.php
  44. 0 {ext/simpletest → lib}/simpletest/tidy_parser.php
  45. 0 {ext/simpletest → lib}/simpletest/unit_tester.php
  46. 0 {ext/simpletest → lib}/simpletest/url.php
  47. 0 {ext/simpletest → lib}/simpletest/user_agent.php
  48. 0 {ext/simpletest → lib}/simpletest/web_tester.php
  49. 0 {ext/simpletest → lib}/simpletest/xml.php
@@ -38,7 +38,7 @@ public function onDisplayingImage(DisplayingImageEvent $event) {
public function onUserPageBuilding(UserPageBuildingEvent $event) {
global $page, $user;
- if($user->can("edit_other_votes")) {
+ if($user->can("edit_other_vote")) {
$html = $this->theme->get_nuller_html($event->display_user);
$page->add_block(new Block("Votes", $html, "main", 60));
}
View
@@ -203,7 +203,15 @@ public function onUserPageBuilding(UserPageBuildingEvent $event) {
$event->add_stats("Joined: $h_join_date", 10);
$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);
$this->theme->display_user_page($event->display_user, $event->stats);
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 75abdc7

Please sign in to comment.