From b07e756927bda84090cacfe5a666d5ca811b8862 Mon Sep 17 00:00:00 2001 From: Matthias Pfefferle Date: Fri, 6 Oct 2023 11:38:08 +0200 Subject: [PATCH] use const instead of dirname --- includes/class-activitypub.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/class-activitypub.php b/includes/class-activitypub.php index 8704ded..41124b1 100644 --- a/includes/class-activitypub.php +++ b/includes/class-activitypub.php @@ -91,11 +91,11 @@ class Activitypub { } if ( \is_author() ) { - $json_template = \dirname( __FILE__ ) . '/../templates/author-json.php'; + $json_template = ACTIVITYPUB_PLUGIN_DIR . '/templates/author-json.php'; } elseif ( \Activitypub\is_ap_replies() ) { - $json_template = \dirname( __FILE__ ) . '/../templates/replies-json.php'; + $json_template = ACTIVITYPUB_PLUGIN_DIR . '/templates/replies-json.php'; } elseif ( \Activitypub\is_ap_comment() ) { - $json_template = \dirname( __FILE__ ) . '/../templates/comment-json.php'; + $json_template = ACTIVITYPUB_PLUGIN_DIR . '/templates/comment-json.php'; } elseif ( \is_singular() ) { $json_template = ACTIVITYPUB_PLUGIN_DIR . '/templates/post-json.php'; } elseif ( \is_home() ) {