mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-02 08:42:15 +09:00
add getSiteTitle method
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12744 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
acb8e1d509
commit
613adc5180
1 changed files with 16 additions and 0 deletions
|
|
@ -752,6 +752,22 @@ class Context
|
|||
return htmlspecialchars($self->site_title);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return layout's title
|
||||
* @return string layout's title
|
||||
*/
|
||||
public function getSiteTitle()
|
||||
{
|
||||
$oModuleModel = &getModel('module');
|
||||
$moduleConfig = $oModuleModel->getModuleConfig('module');
|
||||
|
||||
if(isset($moduleConfig->siteTitle))
|
||||
{
|
||||
return $moduleConfig->siteTitle;
|
||||
}
|
||||
return '';
|
||||
}
|
||||
|
||||
/**
|
||||
* Get browser title
|
||||
* @deprecated
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue