Merge pull request #11304 from andyg5000/master

Make the data year in the template dynamic by using date().
This commit is contained in:
Morris Jobke 2019-02-01 15:49:18 +01:00 committed by GitHub
commit 422dd9dfd6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -90,7 +90,7 @@ class OC_Theme {
* @return string short footer
*/
public function getShortFooter() {
$footer = 2018 <a href="'.$this->getBaseUrl().'" target="_blank\">'.$this->getEntity().'</a>'.
$footer = ' . date('Y') . ' <a href="' . $this->getBaseUrl() . '" target="_blank">' . $this->getEntity() . '</a>' .
'<br/>' . $this->getSlogan();
return $footer;
@ -101,14 +101,18 @@ class OC_Theme {
* @return string long footer
*/
public function getLongFooter() {
$footer = 2017 <a href="'.$this->getBaseUrl().'" target="_blank\">'.$this->getEntity().'</a>'.
$footer = ' . date('Y') . ' <a href="' . $this->getBaseUrl() . '" target="_blank">' . $this->getEntity() . '</a>' .
'<br/>' . $this->getSlogan();
return $footer;
}
/**
* Generate a documentation link for a given key
* @return string documentation link
*/
public function buildDocLinkToKey($key) {
return $this->getDocBaseUrl() . '/server/12/go.php?to=' . $key;
return $this->getDocBaseUrl() . '/server/15/go.php?to=' . $key;
}