Index: trunk/phase3/maintenance/update.php |
— | — | @@ -102,10 +102,14 @@ |
103 | 103 | } |
104 | 104 | |
105 | 105 | $shared = $this->hasOption( 'doshared' ); |
106 | | - $purge = !$this->hasOption( 'nopurge' ); |
107 | 106 | |
| 107 | + $updates = array('core','extensions'); |
| 108 | + if( !$this->hasOption('nopurge') ) { |
| 109 | + $updates[] = 'purge'; |
| 110 | + } |
| 111 | + |
108 | 112 | $updater = DatabaseUpdater::newForDb( $db, $shared, $this ); |
109 | | - $updater->doUpdates( $purge ); |
| 113 | + $updater->doUpdates( $updates ); |
110 | 114 | |
111 | 115 | foreach( $updater->getPostDatabaseUpdateMaintenance() as $maint ) { |
112 | 116 | $child = $this->runChild( $maint ); |