wfDebug( __METHOD__ . ": CACHE DISABLED\n", false );
return false;
}
- if ( $this->getUser()->getOption( 'nocache' ) ) {
- wfDebug( __METHOD__ . ": USER DISABLED CACHE\n", false );
- return false;
- }
$timestamp = wfTimestamp( TS_MW, $timestamp );
$modifiedTimes = array(
/**
* Set the robot policy for the page: <http://www.robotstxt.org/meta.html>
*
- * @param string|array $policy string such as "noindex,nofollow" or an array in this
- * format:
- * array(
- * 'index' => 'noindex' // or 'index'
- * 'follow' => 'nofollow' // or 'follow'
- * )
+ * @param string $policy the literal string to output as the contents of
+ * the meta tag. Will be parsed according to the spec and output in
+ * standardized form.
* @return null
*/
public function setRobotPolicy( $policy ) {
$userdir = $this->getLanguage()->getDir();
$sitedir = $wgContLang->getDir();
- $ret = Html::htmlHeader( array( 'lang' => $this->getLanguage()->getHtmlCode(), 'dir' => $userdir, 'class' => 'client-nojs' ) );
+ $ret = Html::htmlHeader( $sk->getHtmlElementAttributes() );
if ( $this->getHTMLTitle() == '' ) {
$this->setHTMLTitle( $this->msg( 'pagetitle', $this->getPageTitle() )->inContentLanguage() );