mirror of
https://github.com/monstra-cms/monstra.git
synced 2025-08-03 19:57:57 +02:00
Site Module: methods keywords() and description() fixed.
This commit is contained in:
@@ -111,7 +111,7 @@
|
||||
* @return string
|
||||
*/
|
||||
public static function description() {
|
||||
return (trim(call_user_func(ucfirst(Uri::command()).'::description')) == '') ? Html::toText(Option::get('description')) : Html::toText($description);
|
||||
return (($description = trim(call_user_func(ucfirst(Uri::command()).'::description'))) == '') ? Html::toText(Option::get('description')) : Html::toText($description);
|
||||
}
|
||||
|
||||
|
||||
@@ -125,7 +125,7 @@
|
||||
* @return string
|
||||
*/
|
||||
public static function keywords() {
|
||||
return (trim(call_user_func(ucfirst(Uri::command()).'::keywords')) == '') ? Html::toText(Option::get('keywords')) : Html::toText($description);
|
||||
return (($keywords = trim(call_user_func(ucfirst(Uri::command()).'::keywords'))) == '') ? Html::toText(Option::get('keywords')) : Html::toText($keywords);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user