projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add consistency between checkTemplateFileExists functions,
[civicrm-core.git]
/
CRM
/
Profile
/
Page
/
Listings.php
diff --git
a/CRM/Profile/Page/Listings.php
b/CRM/Profile/Page/Listings.php
index c521848e1cf74eacd51148fe9f20241bc815ece2..0cec9a36ba272ca4e67bd44e3ce9744c3305e722 100644
(file)
--- a/
CRM/Profile/Page/Listings.php
+++ b/
CRM/Profile/Page/Listings.php
@@
-17,7
+17,7
@@
/**
* This implements the profile page for all contacts. It uses a selector
/**
* This implements the profile page for all contacts. It uses a selector
- * object to do the actual disp
ay. The fields display
d are controlled by
+ * object to do the actual disp
lay. The fields displaye
d are controlled by
* the admin.
*/
class CRM_Profile_Page_Listings extends CRM_Core_Page {
* the admin.
*/
class CRM_Profile_Page_Listings extends CRM_Core_Page {
@@
-281,7
+281,7
@@
class CRM_Profile_Page_Listings extends CRM_Core_Page {
$ufgroupDAO = new CRM_Core_DAO_UFGroup();
$ufgroupDAO->id = $this->_gid;
if (!$ufgroupDAO->find(TRUE)) {
$ufgroupDAO = new CRM_Core_DAO_UFGroup();
$ufgroupDAO->id = $this->_gid;
if (!$ufgroupDAO->find(TRUE)) {
- CRM_Core_Error::statusBounce(
'Unable to find matching UF Group'
);
+ CRM_Core_Error::statusBounce(
ts('Unable to find matching UF Group')
);
}
}
}
}
@@
-449,11
+449,14
@@
class CRM_Profile_Page_Listings 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}/Listings.{$suffix}tpl";
$template = CRM_Core_Page::getTemplate();
if ($this->_gid) {
$templateFile = "CRM/Profile/Page/{$this->_gid}/Listings.{$suffix}tpl";
$template = CRM_Core_Page::getTemplate();