maintenance/orphans.php File Reference

Look for 'orphan' revisions hooked to pages which don't exist And 'childless' pages with no revisions. More...

Go to the source code of this file.

Functions

 checkOrphans ($fix)
 checkWidows ($fix)
 checkSeparation ($fix)

Variables

 $options = array( 'fix' )
 $wgTitle = Title::newFromText( 'Orphan revision cleanup script' )


Detailed Description

Look for 'orphan' revisions hooked to pages which don't exist And 'childless' pages with no revisions.

Then, kill the poor widows and orphans. Man this is depressing.

Author:
<brion@pobox.com>

Definition in file orphans.php.


Function Documentation

checkOrphans ( fix  ) 

Definition at line 43 of file orphans.php.

References $dbw, $fix, $page, $result, $revision, $row, $wgContLang, printf(), and wfGetDB().

checkSeparation ( fix  ) 

checkWidows ( fix  ) 

Todo:
DON'T USE THIS YET! It will remove entries which have children, but which aren't properly attached (eg if page_latest is bogus but valid revisions do exist)

Definition at line 94 of file orphans.php.

References $dbw, $fix, $page, $result, $revision, $row, $wgContLang, printf(), and wfGetDB().


Variable Documentation

$options = array( 'fix' )

Definition at line 31 of file orphans.php.

$wgTitle = Title::newFromText( 'Orphan revision cleanup script' )

Definition at line 35 of file orphans.php.


Generated on Sat Sep 5 02:08:27 2009 for MediaWiki by  doxygen 1.5.9