set_include_path( implode( PATH_SEPARATOR, $path ) . PATH_SEPARATOR . get_include_path() );
require_once( "$IP/includes/AutoLoader.php" );
+require_once( "$IP/includes/Defines.php" );
require_once( "$IP/includes/DefaultSettings.php" );
if ( $wgCommandLineMode ) {
}
}
-class DatabaseForge extends DatabasePostgres {
- function DatabaseForge($server=false, $user=false, $password=false,
- $dbName=false, $failFunction=false, $flags=0) {
- global $wgDBtype;
-
- $wgDBtype = "postgres";
- return DatabasePostgres::DatabasePostgres($server, $user,
- $password, $dbName, $failFunction, $flags);
- }
-
- function tableName($name, $format='quoted') {
- switch ($name) {
- case 'interwiki':
- return 'public.interwiki';
- default:
- return DatabasePostgres::tableName($name, $format);
- }
- }
-}
-
$g = group_get_object_by_name($fusionforgeproject) ;
$wgSitename = $g->getPublicName() . " Wiki";
$wgScriptPath = "/plugins/mediawiki/wiki/$fusionforgeproject" ;
$user->mId=$mwu->getID();
$user->loadFromId() ;
- $user->loadGroups() ;
$current_groups = $user->getGroups() ;
$available_roles = RBACEngine::getInstance()->getAvailableRoles() ;