*/
public static function getEmailToken( $pageid, $title ) {
global $wgUser;
- if ( !$wgUser->canSendEmail() || $wgUser->isBlockedFromEmailUser() ) {
+ if ( !$wgUser->canSendEmail() || $wgUser->isBlockedFromEmailuser() ) {
return false;
}
$dbkey = $title->getDBkey();
$pageInfo['contentmodel'] = $title->getContentModel();
- $pageInfo['pagelanguage'] = $title->getPageLanguage()->getCode();
+
+ $pageLanguage = $title->getPageLanguage();
+ $pageInfo['pagelanguage'] = $pageLanguage->getCode();
+ $pageInfo['pagelanguagehtmlcode'] = $pageLanguage->getHtmlCode();
+ $pageInfo['pagelanguagedir'] = $pageLanguage->getDir();
if ( $titleExists ) {
$pageInfo['touched'] = wfTimestamp( TS_ISO_8601, $this->pageTouched[$pageid] );
$this->addFieldsIf( 'wl_notificationtimestamp', $this->fld_notificationtimestamp );
$this->addWhere( array(
$lb->constructSet( 'wl', $db ),
- 'wl_user' => $user->getID()
+ 'wl_user' => $user->getId()
) );
$res = $this->select( __METHOD__ );
public function getAllowedParams() {
return array(
'prop' => array(
- ApiBase::PARAM_DFLT => null,
ApiBase::PARAM_ISMULTI => true,
ApiBase::PARAM_TYPE => array(
'protection',
),
'token' => array(
ApiBase::PARAM_DEPRECATED => true,
- ApiBase::PARAM_DFLT => null,
ApiBase::PARAM_ISMULTI => true,
ApiBase::PARAM_TYPE => array_keys( $this->getTokenFunctions() )
),