+ /**
+ * Get the final, usable URL string (after interpolating any variables)
+ *
+ * @return FALSE|string
+ */
+ public function getBlogUrl() {
+ // Note: We use "*default*" as the default (rather than self::BLOG_URL) so that future
+ // developers can change BLOG_URL without needing to update {civicrm_setting}.
+ $url = CRM_Core_BAO_Setting::getItem(CRM_Core_BAO_Setting::SYSTEM_PREFERENCES_NAME, 'blogUrl', NULL, '*default*');
+ if ($url === '*default*') {
+ $url = self::BLOG_URL;
+ }
+ return CRM_Utils_System::evalUrl($url);
+ }
+