From: Christian Wach Date: Wed, 12 Nov 2014 16:03:51 +0000 (+0000) Subject: pinking shears - remove stray whitespace X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=1beae3b1d96a6dd907c923bb3143b667c54f8d22;p=civicrm-core.git pinking shears - remove stray whitespace --- diff --git a/CRM/Utils/System/WordPress.php b/CRM/Utils/System/WordPress.php index 47a7bd6f9c..54d6d0b84e 100644 --- a/CRM/Utils/System/WordPress.php +++ b/CRM/Utils/System/WordPress.php @@ -64,16 +64,16 @@ class CRM_Utils_System_WordPress extends CRM_Utils_System_Base { if (!$pageTitle) { $pageTitle = $title; } - + // get civi-wordpress instance $civi = civi_wp(); - + // do we have functionality provided by plugin version 4.6+ present? if (method_exists($civi, 'civicrm_context_get')) { - + global $civicrm_wp_title; $civicrm_wp_title = $pageTitle; - + // yes, set page title, depending on context $context = civi_wp()->civicrm_context_get(); switch ( $context ) { @@ -82,15 +82,15 @@ class CRM_Utils_System_WordPress extends CRM_Utils_System_Base { $template = CRM_Core_Smarty::singleton(); $template->assign('pageTitle', $pageTitle); } - + } elseif (civicrm_wp_in_civicrm()) { - + // legacy pre-4.6 behaviour global $civicrm_wp_title; $civicrm_wp_title = $pageTitle; $template = CRM_Core_Smarty::singleton(); $template->assign('pageTitle', $pageTitle); - + } }