Add consistency between checkTemplateFileExists functions,
[civicrm-core.git] / CRM / Profile / Page / Dynamic.php
index 2e05630f61b5ddaee03f2459146d37e04b54fa36..10f4037c25b7ef54985bc3f0fc3fee9ac07ada1c 100644 (file)
@@ -388,11 +388,14 @@ class CRM_Profile_Page_Dynamic extends CRM_Core_Page {
   }
 
   /**
-   * @param string $suffix
+   * Check template file exists.
    *
-   * @return null|string
+   * @param string|null $suffix
+   *
+   * @return string|null
+   *   Template file path, else null
    */
-  public function checkTemplateFileExists($suffix = '') {
+  public function checkTemplateFileExists($suffix = NULL) {
     if ($this->_gid) {
       $templateFile = "CRM/Profile/Page/{$this->_gid}/Dynamic.{$suffix}tpl";
       $template = CRM_Core_Page::getTemplate();