* @param $loadFromDB boolean whether to load from the database
* @param $force boolean whether to force a reconstruction
*
- * @return object
+ * @return CRM_Core_Config
* @static
*/
static function &singleton($loadFromDB = TRUE, $force = FALSE) {
*
* @var string
*/
- public $_title;
+ protected $_title;
/**
* The key associated with this controller
if ($controller->_QFResponseType == 'json') {
$response = array(
'content' => $html,
- 'title' => $controller->_title,
+ 'title' => CRM_Utils_System::$title,
);
if (!empty($form['errors'])) {
$response['status'] = 'form_error';
static $_callbacks = NULL;
+ /**
+ * @var string Page title
+ */
+ static $title = '';
+
/**
* Compose a new url string from the current url string
* Used by all the framework components, specifically,
* @static
*/
static function setTitle($title, $pageTitle = NULL) {
+ self::$title = $title;
$config = CRM_Core_Config::singleton();
return $config->userSystem->setTitle($title, $pageTitle);
}