Skip to content

Commit

Permalink
remove obsolete function references - fixes #30
Browse files Browse the repository at this point in the history
  • Loading branch information
Giraffaman committed Feb 24, 2024
1 parent f9ab94f commit 9d5c55f
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions ext/rating/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -399,16 +399,6 @@ public function onPageRequest(PageRequestEvent $event): void
# 2023-12-21: added to process default rating chages from form added in pr0rooru theme
# TODO: put this into its own extension so we don't touch Ratings
if(($event->page_matches("rating/save_ratingView")) || ($event->page_matches("save_ratingView"))) {
# this part is obsolete
if($event->count_args() > 0) {
echo $this->make_logentry("arg count: ".$event->count_args());
foreach($event->args as $a) {
echo $this->make_logentry($a);
}
} else {
echo $this->make_logentry("no args?");
}
#echo $this->make_logentry("extension - page requested: ".$event);
if (!$user->can(Permissions::BULK_EDIT_IMAGE_RATING)) {
throw new PermissionDeniedException("Permission denied");
} else {
Expand Down

0 comments on commit 9d5c55f

Please sign in to comment.