}
}
+ /**
+ * Validate function
+ */
+ function validate() {
+ global $wgOut, $wgUser;
+ $wgOut->setRobotpolicy( 'noindex,follow' );
+
+ $wgOut->addWikiText ( "Not implemented yet" ) ;
+ }
/**
* Add this page to $wgUser's watchlist
*/
$wgAvailableRights = array('read', 'edit', 'move', 'delete', 'undelete',
'protect', 'block', 'userrights', 'grouprights', 'createaccount', 'upload',
-'asksql', 'rollback', 'patrol', 'editinterface', 'siteadmin', 'bot');
+'asksql', 'rollback', 'patrol', 'editinterface', 'siteadmin', 'bot', 'validate');
?>
* @access private
*/
function buildContentActionUrls () {
- global $wgContLang;
+ global $wgContLang, $wgUseValidation;
$fname = 'SkinTemplate::buildContentActionUrls';
wfProfileIn( $fname );
);
}
}
+ }
} else {
//article doesn't exist or is deleted
if($wgUser->isAllowed('delete')){
'href' => $this->mTitle->getLocalUrl( 'action=unwatch' )
);
}
+
+ # Validate tab. TODO: add validation to logged-in user rights
+ if($wgUseValidation){ # && $wgUser->isAllowed('validate')){
+ $content_actions['validate'] = array(
+ 'class' => ($action == 'validate') ? 'selected' : false,
+ 'text' => wfMsg('val_tab'),
+ 'href' => $this->mTitle->getLocalUrl( 'action=validate' )
+ );
}
} else {
case 'unprotect':
case 'info':
case 'markpatrolled':
+ case 'validate':
$wgArticle->$action();
break;
case 'print':