Merge pull request #13818 from civicrm/5.12
[civicrm-core.git] / CRM / Event / Form / Registration.php
index e35faa61252c228f489e64f35460496186fac8fd..c104fa17555d6b9fd8833abcb108215517d43b91 100644 (file)
@@ -391,9 +391,7 @@ class CRM_Event_Form_Registration extends CRM_Core_Form {
     $this->_contributeMode = $this->get('contributeMode');
     $this->assign('contributeMode', $this->_contributeMode);
 
-    // setting CMS page title
-    CRM_Utils_System::setTitle($this->_values['event']['title']);
-    $this->assign('title', $this->_values['event']['title']);
+    $this->setTitle($this->_values['event']['title']);
 
     $this->assign('paidEvent', $this->_values['event']['is_monetary']);