X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCore%2FPage%2FAJAX.php;h=a040bc14ce27e4deb98509eea770f9ef65a861df;hb=ef10e0b52408ba266239a859756d757a10348228;hp=4b3fc14b00326114615223ddba06ec38a5a9317a;hpb=fe6a56117db7e9dada18e60f91de717a89013d86;p=civicrm-core.git diff --git a/CRM/Core/Page/AJAX.php b/CRM/Core/Page/AJAX.php index 4b3fc14b00..a040bc14ce 100644 --- a/CRM/Core/Page/AJAX.php +++ b/CRM/Core/Page/AJAX.php @@ -1,7 +1,7 @@ $response); @@ -200,7 +198,7 @@ class CRM_Core_Page_AJAX { /** * Set headers appropriate for a js file */ - static function setJsHeaders() { + public static function setJsHeaders() { // Encourage browsers to cache for a long time - 1 year $year = 60*60*24*364; header('Expires: '.gmdate('D, d M Y H:i:s \G\M\T', time() + $year)); @@ -215,7 +213,7 @@ class CRM_Core_Page_AJAX { * @param string $key - array key to use as the key * @deprecated */ - static function autocompleteResults($results, $val='label', $key='id') { + public static function autocompleteResults($results, $val='label', $key='id') { $output = array(); if (is_array($results)) { foreach ($results as $k => $v) { @@ -230,4 +228,3 @@ class CRM_Core_Page_AJAX { CRM_Utils_System::civiExit(); } } -