return $s;
}
+ // @fixed
function pageTitleLinks() {
- global $wgOut, $wgUser, $wgRequest, $wgLang;
-
- $oldid = $wgRequest->getVal( 'oldid' );
- $diff = $wgRequest->getVal( 'diff' );
- $action = $wgRequest->getText( 'action' );
-
- $skin = $this->getSkin();
- $title = $skin->getTitle();
-
- $s[] = $this->printableLink();
- $disclaimer = $skin->disclaimerLink(); # may be empty
-
- if ( $disclaimer ) {
- $s[] = $disclaimer;
- }
-
- $privacy = $skin->privacyLink(); # may be empty too
-
- if ( $privacy ) {
- $s[] = $privacy;
+ global $wgLang;
+
+ $s = array();
+ $footlinks = $this->getFooterLinks();
+
+ foreach ( $footlinks['places'] as $item ) {
+ $s[] = $this->data[$item];
}
-
+
return $wgLang->pipeList( $s );
}
return $s;
}
-
- function pageStats() {
- $ret = array();
- $items = array( 'viewcount', 'credits', 'lastmod', 'numberofwatchingusers', 'copyright' );
-
- foreach( $items as $item ) {
- if ( $this->data[$item] !== false ) {
- $ret[] = $this->data[$item];
- }
- }
-
- return implode( ' ', $ret );
- }
-
-
-
-
/**
* @return string
$this->getSkin()->aboutLink(),
$this->searchForm( 'afterContent' )
) );
-
- $s .= "\n<br />" . $this->pageStats();
+
+ $s .= "\n<br />";
+ $footlinks = $this->getFooterLinks();
+ if ( $footlinks['info'] ) {
+ foreach ( $footlinks['info'] as $item ) {
+ $s .= $this->data[$item] . ' ';
+ }
+ }
$s .= "\n</div>\n</div>\n";