More wikia upstreaming

This commit is contained in:
Sam Reed 2011-08-17 22:42:49 +00:00
parent 3901d9c88c
commit c5a7c0517d
2 changed files with 20 additions and 15 deletions

View file

@ -28,9 +28,9 @@ class ImageGallery {
* Contextual title, used when images are being screened
* against the bad image list
*/
private $contextTitle = false;
protected $contextTitle = false;
private $mAttribs = array();
protected $mAttribs = array();
/**
* Fixed margins

View file

@ -52,7 +52,9 @@ class XmlTypeCheck {
xml_set_element_handler( $parser, array( $this, 'rootElementOpen' ), false );
if ( file_exists( $fname ) ) {
$file = fopen( $fname, "rb" );
if ( $file ) {
do {
$chunk = fread( $file, 32768 );
$ret = xml_parse( $parser, $chunk, feof( $file ) );
@ -64,9 +66,12 @@ class XmlTypeCheck {
}
} while( !feof( $file ) );
fclose( $file );
}
}
$this->wellFormed = true;
fclose( $file );
xml_parser_free( $parser );
}