}
}
if( $total > 0 ) {
- $ratio = IntVal( 100.0 * $success / $total );
+ $ratio = sprintf( "%.2f", 100 * $success / $total );
print $this->termColor( 1 ) . "\nPassed $success of $total tests ($ratio%) ";
if( $success == $total ) {
print $this->termColor( 32 ) . "PASSED!";
'wgCapitalLinks' => true,
'wgDefaultUserOptions' => array(),
'wgNoFollowLinks' => true,
+ 'wgThumbnailScriptPath' => false,
);
$this->savedGlobals = array();
foreach( $settings as $var => $val ) {
'recentchanges',
'watchlist', 'math', 'searchindex',
'interwiki', 'querycache',
- 'objectcache', 'group'
+ 'objectcache', 'groups'
);
}
) );
# Hack: initialize a group
- $db->insert( 'group', array(
- 'group_id' => 1,
- 'group_name' => 'Anonymous',
- 'group_description' => 'Anonymous users',
- 'group_rights' => 'read' ) );
+ $db->insert( 'groups', array(
+ 'gr_id' => 1,
+ 'gr_name' => 'Anonymous',
+ 'gr_description' => 'Anonymous users',
+ 'gr_rights' => 'read' ) );
# Hack: Insert an image to work with
$db->insert( 'image', array(
'img_user' => 1,
'img_user_text' => 'WikiSysop',
'img_timestamp' => $db->timestamp( '20010115123500' ),
- 'img_width' => 666,
- 'img_height' => 444,
+ 'img_width' => 1941,
+ 'img_height' => 220,
'img_bits' => 24,
'img_type' => 2, // 2 == JPEG
) );