comment fixes
[civicrm-core.git] / CRM / Contact / Page / View / Log.php
index 6a3b55586c95f957d8d979c373907b40dd028fe1..38e7a0ca42d14e387803c8af3d1bdd4b729156c4 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.6                                                |
+ | CiviCRM version 4.7                                                |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2014                                |
+ | Copyright CiviCRM LLC (c) 2004-2015                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
  * @package CRM
- * @copyright CiviCRM LLC (c) 2004-2014
- * $Id$
- *
+ * @copyright CiviCRM LLC (c) 2004-2015
  */
 class CRM_Contact_Page_View_Log extends CRM_Core_Page {
 
   /**
-   * called when action is browse
+   * Called when action is browse.
    *
    * @return null
    */
@@ -47,7 +45,7 @@ class CRM_Contact_Page_View_Log extends CRM_Core_Page {
       $this->assign('instanceUrl',
         CRM_Utils_System::url("civicrm/report/instance/{$loggingReport}",
           "reset=1&force=1&snippet=4&section=2&altered_contact_id_op=eq&altered_contact_id_value={$this->_contactId}&cid={$this->_contactId}", FALSE, NULL, FALSE));
-      return;
+      return NULL;
     }
 
     $log = new CRM_Core_DAO_Log();
@@ -69,6 +67,8 @@ class CRM_Contact_Page_View_Log extends CRM_Core_Page {
     }
 
     $this->assign('logCount', count($logEntries));
+    $this->ajaxResponse['tabCount'] = count($logEntries);
+    $this->ajaxResponse += CRM_Contact_Form_Inline::renderFooter($this->_contactId, FALSE);
     $this->assign_by_ref('log', $logEntries);
   }