maintenance/cleanupEmptyCategories.php 2 locations
|
@@ 93-97 (lines=5) @@
|
| 90 |
|
$throttle = intval( $throttle ); |
| 91 |
|
|
| 92 |
|
if ( $mode === 'add' || $mode === 'both' ) { |
| 93 |
|
if ( $begin !== '' ) { |
| 94 |
|
$where = [ 'page_title > ' . $dbw->addQuotes( $begin ) ]; |
| 95 |
|
} else { |
| 96 |
|
$where = []; |
| 97 |
|
} |
| 98 |
|
|
| 99 |
|
$this->output( "Adding empty categories with description pages...\n" ); |
| 100 |
|
while ( true ) { |
|
@@ 145-149 (lines=5) @@
|
| 142 |
|
} |
| 143 |
|
|
| 144 |
|
if ( $mode === 'remove' || $mode === 'both' ) { |
| 145 |
|
if ( $begin !== '' ) { |
| 146 |
|
$where = [ 'cat_title > ' . $dbw->addQuotes( $begin ) ]; |
| 147 |
|
} else { |
| 148 |
|
$where = []; |
| 149 |
|
} |
| 150 |
|
|
| 151 |
|
$this->output( "Removing empty categories without description pages...\n" ); |
| 152 |
|
while ( true ) { |
maintenance/populateCategory.php 1 location
|
@@ 95-99 (lines=5) @@
|
| 92 |
|
} |
| 93 |
|
|
| 94 |
|
$throttle = intval( $throttle ); |
| 95 |
|
if ( $begin !== '' ) { |
| 96 |
|
$where = 'cl_to > ' . $dbw->addQuotes( $begin ); |
| 97 |
|
} else { |
| 98 |
|
$where = null; |
| 99 |
|
} |
| 100 |
|
$i = 0; |
| 101 |
|
|
| 102 |
|
while ( true ) { |