X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCore%2FPage.php;h=291c7d6297c437ab19086144b540f92bd20ad435;hb=8e578c2f429972d600768936717b3e8fe4f58ef6;hp=a0a01e6956237ec653d9224383328075286c28eb;hpb=f4a16663073836f580f30dc150ae69af06bf1e33;p=civicrm-core.git diff --git a/CRM/Core/Page.php b/CRM/Core/Page.php index a0a01e6956..291c7d6297 100644 --- a/CRM/Core/Page.php +++ b/CRM/Core/Page.php @@ -225,25 +225,6 @@ class CRM_Core_Page { CRM_Utils_VersionCheck::singleton()->versionAlert(); CRM_Utils_Check::singleton()->showPeriodicAlerts(); - // Debug msg once per hour - if ($config->debug && CRM_Core_Permission::check('administer CiviCRM') && CRM_Core_Session::singleton()->timer('debug_alert', 7200)) { - $msg = ts('Warning: Debug is enabled in system settings. This should not be enabled on production servers.', array(1 => CRM_Utils_System::url('civicrm/admin/setting/debug', 'reset=1'))); - CRM_Core_Session::setStatus($msg, ts('Debug Mode')); - } - - $mailingInfo = CRM_Core_BAO_Setting::getItem(CRM_Core_BAO_Setting::MAILING_PREFERENCES_NAME, 'mailing_backend'); - - // Outbound email msg once every 2 hours if outbound email is redirected or disabled - if (($mailingInfo['outBound_option'] == CRM_Mailing_Config::OUTBOUND_OPTION_REDIRECT_TO_DB - || (defined('CIVICRM_MAIL_LOG') && CIVICRM_MAIL_LOG) - || $mailingInfo['outBound_option'] == CRM_Mailing_Config::OUTBOUND_OPTION_DISABLED - || $mailingInfo['outBound_option'] == CRM_Mailing_Config::OUTBOUND_OPTION_MOCK) - && CRM_Core_Permission::check('administer CiviCRM') && CRM_Core_Session::singleton()->timer('outboundEmail_alert', 7200)) - { - $msg = ts('Warning: Outbound email is disabled in system settings. Proper settings should be enabled on production servers.', array(1 => CRM_Utils_System::url('civicrm/admin/setting/smtp', 'reset=1'))); - CRM_Core_Session::setStatus($msg, ts('Outbound Email Settings')); - } - if ($this->useLivePageJS && CRM_Core_BAO_Setting::getItem(CRM_Core_BAO_Setting::SYSTEM_PREFERENCES_NAME, 'ajaxPopupsEnabled', NULL, TRUE)) { @@ -298,9 +279,10 @@ class CRM_Core_Page { /** * assign value to name in template * - * @param array|string $name name of variable + * @param $var * @param mixed $value value of varaible * + * @internal param array|string $name name of variable * @return void * @access public */ @@ -311,9 +293,10 @@ class CRM_Core_Page { /** * assign value to name in template by reference * - * @param array|string $name name of variable + * @param $var * @param mixed $value (reference) value of varaible * + * @internal param array|string $name name of variable * @return void * @access public */ @@ -336,7 +319,8 @@ class CRM_Core_Page { * Returns an array containing template variables * * @param string $name - * @param string $type + * + * @internal param string $type * @return array */ function get_template_vars($name=null) { @@ -432,14 +416,26 @@ class CRM_Core_Page { return $this->_print; } + /** + * @return CRM_Core_Smarty + */ static function &getTemplate() { return self::$_template; } + /** + * @param $name + * + * @return null + */ function getVar($name) { return isset($this->$name) ? $this->$name : NULL; } + /** + * @param $name + * @param $value + */ function setVar($name, $value) { $this->$name = $value; }