fixed broken relationship form, bad ts() call
authorkurund <kurund@civicrm.org>
Sun, 2 Mar 2014 19:47:47 +0000 (01:17 +0530)
committerkurund <kurund@civicrm.org>
Sun, 2 Mar 2014 19:47:47 +0000 (01:17 +0530)
CRM/Contact/Form/Relationship.php

index f7bdb463c30f05a8ee96db9c08b5ebb07dd49c5d..c27687a2287f38271bbe416e68c6e2fe4ab11a89 100644 (file)
@@ -147,16 +147,16 @@ class CRM_Contact_Form_Relationship extends CRM_Core_Form {
     // Set page title based on action
     switch ($this->_action) {
       case CRM_Core_Action::VIEW:
-        CRM_Utils_System::setTitle(ts('View Relationship for %1', $this->_display_name_a));
+        CRM_Utils_System::setTitle(ts('View Relationship for %1', array(1 => $this->_display_name_a)));
         break;
       case CRM_Core_Action::ADD:
-        CRM_Utils_System::setTitle(ts('Add Relationship for %1', $this->_display_name_a));
+        CRM_Utils_System::setTitle(ts('Add Relationship for %1', array(1 => $this->_display_name_a)));
         break;
       case CRM_Core_Action::UPDATE:
-        CRM_Utils_System::setTitle(ts('Edit Relationship for %1', $this->_display_name_a));
+        CRM_Utils_System::setTitle(ts('Edit Relationship for %1', array(1 => $this->_display_name_a)));
         break;
       case CRM_Core_Action::DELETE:
-        CRM_Utils_System::setTitle(ts('Delete Relationship for %1', $this->_display_name_a));
+        CRM_Utils_System::setTitle(ts('Delete Relationship for %1', array(1 => $this->_display_name_a)));
         break;
     }