Difference between revisions of "Extension:MediaWikiLite.php"
(separate DB class out to DatabaseSqlite.php) |
m |
||
Line 14: | Line 14: | ||
$wgShowSQLErrors = true; | $wgShowSQLErrors = true; | ||
+ | # Ensure the LoadBalancer knows how to load our DB class when the time comes | ||
$wgAutoloadClasses['DatabaseSqlite'] = dirname(__FILE__)."/DatabaseSqlite.php"; | $wgAutoloadClasses['DatabaseSqlite'] = dirname(__FILE__)."/DatabaseSqlite.php"; | ||
Revision as of 07:10, 9 January 2008
<?php
- Extension:MediaWikiLite
Template:PhpCategory:Extensions in progress
- - Licenced under LGPL (http://www.gnu.org/copyleft/lesser.html)
- - Author: User:Nad
- - Started: 2007-12-17
if (!defined('MEDIAWIKI')) die('Not an entry point.'); if (!defined('PDO::ATTR_SERVER_VERSION')) die('PDO::SQLite3 is not installed!');
define('MWLITE_VERSION','0.0.0, 2008-01-09');
$wgDBtype = 'sqlite'; $wgSQLiteDataDir = dirname(__FILE__); $wgShowSQLErrors = true;
- Ensure the LoadBalancer knows how to load our DB class when the time comes
$wgAutoloadClasses['DatabaseSqlite'] = dirname(__FILE__)."/DatabaseSqlite.php";
$wgExtensionCredits['other'][] = array( 'name' => 'MediaWikiLite', 'author' => 'User:Nad', 'description' => 'Allow MediaWiki installations to store content in an SQLite database instead of MySQL, and to run as a daemon independently of a web-server.', 'url' => 'http://www.organicdesign.co.nz/Extension:SQLite.php', 'version' => MWLITE_VERSION );