From 3a76259f4df91b4e5dec48cb623893b12937599c Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Sun, 25 Jul 2010 21:02:56 +0000 Subject: [PATCH] Change some more to parent:: --- includes/RevisionDelete.php | 4 ++-- includes/Skin.php | 4 ++-- includes/SpecialPage.php | 4 ++-- includes/media/Bitmap_ClientOnly.php | 2 +- maintenance/installExtension.php | 6 +++--- maintenance/language/StatOutputs.php | 2 +- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/includes/RevisionDelete.php b/includes/RevisionDelete.php index 14a82dd037..7a540a0719 100644 --- a/includes/RevisionDelete.php +++ b/includes/RevisionDelete.php @@ -938,7 +938,7 @@ class RevDel_ArchiveList extends RevDel_RevisionList { */ class RevDel_ArchiveItem extends RevDel_RevisionItem { public function __construct( $list, $row ) { - RevDel_Item::__construct( $list, $row ); + parent::__construct( $list, $row ); $this->revision = Revision::newFromArchiveRow( $row, array( 'page' => $this->list->title->getArticleId() ) ); } @@ -1246,7 +1246,7 @@ class RevDel_ArchivedFileList extends RevDel_FileList { */ class RevDel_ArchivedFileItem extends RevDel_FileItem { public function __construct( $list, $row ) { - RevDel_Item::__construct( $list, $row ); + parent::__construct( $list, $row ); $this->file = ArchivedFile::newFromRow( $row ); } diff --git a/includes/Skin.php b/includes/Skin.php index a50d3f9de4..f000fbfffe 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -838,7 +838,7 @@ CSS; $parenttree = $this->mTitle->getParentCategoryTree(); # Skin object passed by reference cause it can not be # accessed under the method subfunction drawCategoryBrowser - $tempout = explode( "\n", Skin::drawCategoryBrowser( $parenttree, $this ) ); + $tempout = explode( "\n", $this->drawCategoryBrowser( $parenttree, $this ) ); # Clean out bogus first entry and sort them unset( $tempout[0] ); asort( $tempout ); @@ -863,7 +863,7 @@ CSS; $return .= "\n"; } else { # grab the others elements - $return .= Skin::drawCategoryBrowser( $parent, $skin ) . ' > '; + $return .= $this->drawCategoryBrowser( $parent, $skin ) . ' > '; } # add our current element to the list $eltitle = Title::newFromText( $element ); diff --git a/includes/SpecialPage.php b/includes/SpecialPage.php index b2ea317975..ca58b7f9e4 100644 --- a/includes/SpecialPage.php +++ b/includes/SpecialPage.php @@ -915,7 +915,7 @@ class SpecialPage { class UnlistedSpecialPage extends SpecialPage { function UnlistedSpecialPage( $name, $restriction = '', $function = false, $file = 'default' ) { - SpecialPage::SpecialPage( $name, $restriction, false, $function, $file ); + parent::SpecialPage( $name, $restriction, false, $function, $file ); } } @@ -926,7 +926,7 @@ class UnlistedSpecialPage extends SpecialPage class IncludableSpecialPage extends SpecialPage { function IncludableSpecialPage( $name, $restriction = '', $listed = true, $function = false, $file = 'default' ) { - SpecialPage::SpecialPage( $name, $restriction, $listed, $function, $file, true ); + parent::SpecialPage( $name, $restriction, $listed, $function, $file, true ); } } diff --git a/includes/media/Bitmap_ClientOnly.php b/includes/media/Bitmap_ClientOnly.php index 9801f9bee7..d14876c750 100644 --- a/includes/media/Bitmap_ClientOnly.php +++ b/includes/media/Bitmap_ClientOnly.php @@ -2,7 +2,7 @@ class BitmapHandler_ClientOnly extends BitmapHandler { function normaliseParams( $image, &$params ) { - return ImageHandler::normaliseParams( $image, $params ); + return parent::normaliseParams( $image, $params ); } function doTransform( $image, $dstPath, $dstUrl, $params, $flags = 0 ) { diff --git a/maintenance/installExtension.php b/maintenance/installExtension.php index 17b50c985d..94dcfd7daa 100644 --- a/maintenance/installExtension.php +++ b/maintenance/installExtension.php @@ -74,7 +74,7 @@ class InstallerRepository { class LocalInstallerRepository extends InstallerRepository { function LocalInstallerRepository ( $path ) { - InstallerRepository::InstallerRepository( $path ); + parent::InstallerRepository( $path ); } function printListing( ) { @@ -114,7 +114,7 @@ class LocalInstallerRepository extends InstallerRepository { class WebInstallerRepository extends InstallerRepository { function WebInstallerRepository ( $path ) { - InstallerRepository::InstallerRepository( $path ); + parent::InstallerRepository( $path ); } function printListing( ) { @@ -160,7 +160,7 @@ class WebInstallerRepository extends InstallerRepository { class SVNInstallerRepository extends InstallerRepository { function SVNInstallerRepository ( $path ) { - InstallerRepository::InstallerRepository( $path ); + parent::InstallerRepository( $path ); } function printListing( ) { diff --git a/maintenance/language/StatOutputs.php b/maintenance/language/StatOutputs.php index f1e935b4bb..c1d61018d8 100644 --- a/maintenance/language/StatOutputs.php +++ b/maintenance/language/StatOutputs.php @@ -66,7 +66,7 @@ class wikiStatsOutput extends statsOutput { $blue = '00'; $color = $red . $green . $blue; - $percent = statsOutput::formatPercent( $subset, $total, $revert, $accuracy ); + $percent = parent::formatPercent( $subset, $total, $revert, $accuracy ); return 'bgcolor="#' . $color . '"|' . $percent; } } -- 2.20.1