| @@ 136-149 (lines=14) @@ | ||
| 133 | usleep( $throttle * 1000 ); |
|
| 134 | } |
|
| 135 | ||
| 136 | if ( $dbw->insert( |
|
| 137 | 'updatelog', |
|
| 138 | [ 'ul_key' => 'populate category' ], |
|
| 139 | __METHOD__, |
|
| 140 | 'IGNORE' |
|
| 141 | ) ) { |
|
| 142 | $this->output( "Category population complete.\n" ); |
|
| 143 | ||
| 144 | return true; |
|
| 145 | } else { |
|
| 146 | $this->output( "Could not insert category population row.\n" ); |
|
| 147 | ||
| 148 | return false; |
|
| 149 | } |
|
| 150 | } |
|
| 151 | } |
|
| 152 | ||
| @@ 1539-1545 (lines=7) @@ | ||
| 1536 | return false; |
|
| 1537 | } |
|
| 1538 | ||
| 1539 | if ( $db->insert( 'updatelog', [ 'ul_key' => $key ], __METHOD__, 'IGNORE' ) ) { |
|
| 1540 | return true; |
|
| 1541 | } else { |
|
| 1542 | $this->output( $this->updatelogFailedMessage() . "\n" ); |
|
| 1543 | ||
| 1544 | return false; |
|
| 1545 | } |
|
| 1546 | } |
|
| 1547 | ||
| 1548 | /** |
|