Remove all references to TemplateInfo

Change-Id: I5ffc8f75140a2c372fc1c64509b13a534fe07479
This commit is contained in:
MatmaRex 2013-09-12 11:41:07 +02:00
parent 8dc157bc09
commit 7bf85a39a1
4 changed files with 7 additions and 7 deletions

View file

@ -1,6 +1,6 @@
<?php <?php
/** /**
* Hooks for TemplateInfo extension * Hooks for TemplateData extension
* *
* @file * @file
* @ingroup Extensions * @ingroup Extensions

View file

@ -1,13 +1,13 @@
<?php <?php
/** /**
* TemplateInfo extension. * TemplateData extension.
* *
* @file * @file
* @ingroup Extensions * @ingroup Extensions
*/ */
if ( version_compare( $wgVersion, '1.20', '<' ) ) { if ( version_compare( $wgVersion, '1.20', '<' ) ) {
echo "Extension:TemplateInfo requires MediaWiki 1.20 or higher.\n"; echo "Extension:TemplateData requires MediaWiki 1.20 or higher.\n";
exit( 1 ); exit( 1 );
} }

View file

@ -21,7 +21,7 @@ class TemplateDataBlob {
private $data; private $data;
/** /**
* @var Status: Cache of TemplateInfo::validate * @var Status: Cache of TemplateDataBlob::parse
*/ */
private $status; private $status;
@ -50,7 +50,7 @@ class TemplateDataBlob {
* Parse and validate passed JSON (possibly gzip-compressed) and create a TemplateDataBlob object. * Parse and validate passed JSON (possibly gzip-compressed) and create a TemplateDataBlob object.
* *
* @param string $json * @param string $json
* @return TemplateInfo * @return TemplateDataBlob
*/ */
public static function newFromDatabase( $json ) { public static function newFromDatabase( $json ) {
// Handle GZIP compression. \037\213 is the header for GZIP files. // Handle GZIP compression. \037\213 is the header for GZIP files.

View file

@ -394,7 +394,7 @@ class TemplateDataBlobTest extends MediaWikiTestCase {
// Compress JSON to trigger the code pass in newFromDatabase that ends // Compress JSON to trigger the code pass in newFromDatabase that ends
// up calling gzdecode(). // up calling gzdecode().
$gzJson = gzencode( '{}' ); $gzJson = gzencode( '{}' );
$templateInfo = TemplateDataBlob::newFromDatabase( $gzJson ); $templateData = TemplateDataBlob::newFromDatabase( $gzJson );
$this->assertInstanceOf( 'TemplateDataBlob', $templateInfo ); $this->assertInstanceOf( 'TemplateDataBlob', $templateData );
} }
} }