}
/**
- * Add wikitext with a custom Title object and
+ * Add wikitext with a custom Title object and
*
* @param $text String: wikitext
* @param $title Title object
*/
public function getXVO() {
$cvCookies = $this->getCacheVaryCookies();
-
+
$cookiesOption = array();
foreach ( $cvCookies as $cookieName ) {
$cookiesOption[] = 'string-contains=' . $cookieName;
}
$this->addVaryHeader( 'Cookie', $cookiesOption );
-
+
$headers = array();
foreach( $this->mVaryHeader as $header => $option ) {
$newheader = $header;
$headers[] = $newheader;
}
$xvo = 'X-Vary-Options: ' . implode( ',', $headers );
-
+
return $xvo;
}
) );
}
}
-
+
if ( $wgJQueryOnEveryPage ) {
$this->includeJQuery();
}
public function addReturnTo( $title, $query=array(), $text=null ) {
global $wgUser;
$this->addLink( array( 'rel' => 'next', 'href' => $title->getFullUrl() ) );
- $link = wfMsgHtml(
- 'returnto',
+ $link = wfMsgHtml(
+ 'returnto',
$wgUser->getSkin()->link( $title, $text, array(), $query )
);
$this->addHTML( "<p id=\"mw-returnto\">{$link}</p>\n" );
/**
* Include jQuery core. Use this to avoid loading it multiple times
- * before we get a usable script loader.
+ * before we get a usable script loader.
*
* @param $modules Array: list of jQuery modules which should be loaded
* @return Array: the list of modules which were not loaded.