CaseWiki:MediaWiki modifications

This page outlines the changes to the core MediaWiki software used on the Case Wiki. Only modifications to the distributed source code will be listed here. Additions, extensions, and special pages will be listed on CaseWiki:Changes.

[edit] Anonymous Edits on Talk Pages

Anonymous users are allowed to make modifications of pages in Talk namespaces (odd numbered namespaces). This modification is a quick extension that works for MediaWiki 1.6 and above.

 
<?php
 
$wgExtensionFunctions[] = 'MediaWiki_AnonymousEditsExtension';
 
function MediaWiki_AnonymousEditsExtension() {
  global $wgHooks;
 
  $wgHooks['userCan'][] = 'MediaWiki_AnonymousEditsUserCan';
}
 
function MediaWiki_AnonymousEditsUserCan(&$title, &$user, $action, &$result) {
  if ($action == 'edit') {
    if ($title->isTalkPage()) {
      $result = true;
 
      if (!in_array('edit', $user->getRights())) {
        $user->mRights[] = 'edit';
      }
    }
  }
 
  return true;
}
?>

[edit] Removal of Password Preferences

Options to change your password have been removed from the user preferences page. Since all authentication is handled by CAS, we do not need any password handling in MediaWiki.

[edit] Automatic User Login Via CAS

You will be automatically logged in to the wiki if you are already logged in to CAS. You will not need to click a link. Everything happens transparently.

This page has been accessed 2,807 times.
This page was last modified 21:25, April 27, 2006 by Gregory Szorc.
About | Disclaimers