phpcs - Fix error, "Visibility must be declared on method"
[civicrm-core.git] / CRM / Core / Controller / Simple.php
index f3319021e827c96c03c0f19d4d478e619b90dcac..0107416f46cb3f6a619a7463de14137fd901b5e3 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.5                                                |
+ | CiviCRM version 4.6                                                |
  +--------------------------------------------------------------------+
  | Copyright CiviCRM LLC (c) 2004-2014                                |
  +--------------------------------------------------------------------+
@@ -129,7 +129,7 @@ class CRM_Core_Controller_Simple extends CRM_Core_Controller {
    * A wrapper for getTemplateFileName that includes calling the hook to
    * prevent us from having to copy & paste the logic of calling the hook
    */
-  function getHookedTemplateFileName() {
+  public function getHookedTemplateFileName() {
     $pageTemplateFile = $this->getTemplateFileName();
     CRM_Utils_Hook::alterTemplateFile(get_class($this), $this, 'page', $pageTemplateFile);
     return $pageTemplateFile;