Skip to content

Commit 422dd9d

Browse files
authored
Merge pull request #11304 from andyg5000/master
Make the data year in the template dynamic by using date().
2 parents e5d8645 + 42eb153 commit 422dd9d

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

themes/example/defaults.php

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public function getLogoClaim() {
9090
* @return string short footer
9191
*/
9292
public function getShortFooter() {
93-
$footer = '© 2018 <a href="'.$this->getBaseUrl().'" target="_blank\">'.$this->getEntity().'</a>'.
93+
$footer = '© ' . date('Y') . ' <a href="' . $this->getBaseUrl() . '" target="_blank">' . $this->getEntity() . '</a>' .
9494
'<br/>' . $this->getSlogan();
9595

9696
return $footer;
@@ -101,14 +101,18 @@ public function getShortFooter() {
101101
* @return string long footer
102102
*/
103103
public function getLongFooter() {
104-
$footer = '© 2017 <a href="'.$this->getBaseUrl().'" target="_blank\">'.$this->getEntity().'</a>'.
104+
$footer = '© ' . date('Y') . ' <a href="' . $this->getBaseUrl() . '" target="_blank">' . $this->getEntity() . '</a>' .
105105
'<br/>' . $this->getSlogan();
106106

107107
return $footer;
108108
}
109109

110+
/**
111+
* Generate a documentation link for a given key
112+
* @return string documentation link
113+
*/
110114
public function buildDocLinkToKey($key) {
111-
return $this->getDocBaseUrl() . '/server/12/go.php?to=' . $key;
115+
return $this->getDocBaseUrl() . '/server/15/go.php?to=' . $key;
112116
}
113117

114118

0 commit comments

Comments
 (0)