From cd0266640bb8ca48e2deb9b69a3df42a0f16feac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=BAben=20Martins?= Date: Tue, 19 May 2020 15:47:49 +0100 Subject: [PATCH] Fix the self:: with ThinkingLogicWCSage:: --- thinkinglogic-wc-sage-one-integration.php | 29 +++++++++++------------ 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/thinkinglogic-wc-sage-one-integration.php b/thinkinglogic-wc-sage-one-integration.php index b627dc4..815d5aa 100644 --- a/thinkinglogic-wc-sage-one-integration.php +++ b/thinkinglogic-wc-sage-one-integration.php @@ -1,7 +1,7 @@ '; echo '
'; - if ($sage->isRefreshTokenExpiringSoon()) { + if ( $sage->isRefreshTokenExpiringSoon() ) { echo 'Refresh Authorisation for Sage'; - } else { - if ($order->meta_exists(self::ORDER_FIELD_CUSTOMER_ID)) { - echo ' '; + } else { + if ( $order->meta_exists(ThinkingLogicWCSage::ORDER_FIELD_CUSTOMER_ID) ) { + echo ''; } else { - echo ' '; + echo ''; } - } + } echo '
'; echo ''; } - } /** @@ -189,4 +188,4 @@ function tl_wc_sage_save_product_fields( $post_id ) { function tl_wc_display_admin_notices( $post_id ) { Logger::showAdminNotices(); Logger::clearAdminNotices(); -} \ No newline at end of file +}