Mediawiki: Difference between revisions
From RavenWiki
Jump to navigationJump to search
(Add reference to CS use; CARET Wiki) |
(Change institution links to point at lookup) |
||
Line 1: | Line 1: | ||
Mediawiki is the wiki software powering wikipedia. It can fairly easily be made to work with Raven. The Computing Service has been using a Raven-enabled copy of Mediawiki internally for some time. [ | Mediawiki is the wiki software powering wikipedia. It can fairly easily be made to work with Raven. The [[[inst:CS | Computing Service]] has been using a Raven-enabled copy of Mediawiki internally for some time. [[inst:CARET | CARET]] have a Raven-enabled copy of | ||
Mediawiki that is available to the university - see http://wiki.caret.cam.ac.uk/ | Mediawiki that is available to the university - see http://wiki.caret.cam.ac.uk/ | ||
Revision as of 10:26, 6 December 2005
Mediawiki is the wiki software powering wikipedia. It can fairly easily be made to work with Raven. The [[[inst:CS | Computing Service]] has been using a Raven-enabled copy of Mediawiki internally for some time. CARET have a Raven-enabled copy of Mediawiki that is available to the university - see http://wiki.caret.cam.ac.uk/
Software hacks, 1.5.2
The only code changed is includes/User.php, with the following change on line 153 (keep the CRSID lowercase):
$s = $dbr->selectRow( 'user', array( 'user_id' ), array( 'user_name' => $name ), $fname );
... and in the function newFromName():
if ( isset( $_SERVER["REMOTE_USER"] ) ) { $sName = $_SERVER["REMOTE_USER"]; $sId = User::idFromName($sName); $user = new User(); if ( $sId == 0 ) { /* User doesn't exist here yet. */ $user->setName($sName); $user->addToDatabase(); } else { $user->mId = $sId; $user->loadFromDatabase(); } return $user; }