Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #4228 - maillogs.php -add a new hook #4229

Merged
merged 1 commit into from Feb 7, 2021

Conversation

Eldenroot
Copy link
Contributor

Resolves #4228

Add a hook for easier plugin development :)

@Supryk

@@ -301,6 +301,8 @@
$log['subject'] = htmlspecialchars_uni($log['subject']);
$log['dateline'] = my_date('relative', $log['dateline']);

$plugins->run_hooks("admin_tools_maillogs_log");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We might want to pass $log as a parameter to this hook I think?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@euantorano this hook is in the global scope, so there is no need.

@@ -301,6 +301,8 @@
$log['subject'] = htmlspecialchars_uni($log['subject']);
$log['dateline'] = my_date('relative', $log['dateline']);

$plugins->run_hooks("admin_tools_maillogs_log");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@euantorano this hook is in the global scope, so there is no need.

@euantorano euantorano merged commit 1337f38 into mybb:feature Feb 7, 2021
@Eldenroot Eldenroot deleted the patch-27 branch February 7, 2021 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

maillogs.php - add a new hook for logs
3 participants