Index: trunk/extensions/OracleTextSearch/maintainenceFixOTSLinks.php |
— | — | @@ -17,9 +17,9 @@ |
18 | 18 | public function execute() { |
19 | 19 | $doAll = $this->hasOption( 'all' ); |
20 | 20 | if ($doAll) { |
21 | | - $this->output( "Recreating all index links to documents ", 'OracleTextSearch' ); |
| 21 | + $this->output( "Recreating all index links to documents\n" ); |
22 | 22 | } else { |
23 | | - $this->output( "Recreating missing index links to documents ", 'OracleTextSearch' ); |
| 23 | + $this->output( "Recreating missing index links to documents\n" ); |
24 | 24 | } |
25 | 25 | $this->doRecreate($doAll); |
26 | 26 | } |
— | — | @@ -33,7 +33,7 @@ |
34 | 34 | |
35 | 35 | $searchWhere = $all ? '' : ' AND NOT EXISTS (SELECT null FROM '.$tbl_idx.' WHERE si_page=p.page_id AND si_url IS NOT null)'; |
36 | 36 | $result = $dbw->doQuery('SELECT p.page_id FROM '.$tbl_pag.' p WHERE p.page_namespace = '.NS_FILE.$searchWhere ); |
37 | | - $this->output( "[".$result->numRows()." files found] ", 'OracleTextSearch' ); |
| 37 | + $this->output( $result->numRows()." file(s) found\n" ); |
38 | 38 | |
39 | 39 | $syncIdx = false; |
40 | 40 | $countDone = 0; |
— | — | @@ -57,16 +57,17 @@ |
58 | 58 | } |
59 | 59 | |
60 | 60 | if ( $syncIdx ) { |
61 | | - $this->output( " Syncing... ", 'OracleTextSearch'); |
| 61 | + $this->output( "Syncing index... " ); |
62 | 62 | $index = $dbw->getProperty('mTablePrefix')."si_url_idx"; |
63 | 63 | $dbw->query( "CALL ctx_ddl.sync_index('$index')" ); |
| 64 | + $this->output( "Done\n" ); |
64 | 65 | } |
65 | 66 | |
66 | | - $this->output(" Finished ($countDone processed", 'OracleTextSearch'); |
| 67 | + $this->output("Finished ($countDone processed" ); |
67 | 68 | if ( $countSkipped > 0 ) { |
68 | | - $this->output(", $countSkipped skipped ", 'OracleTextSearch'); |
| 69 | + $this->output(", $countSkipped skipped " ); |
69 | 70 | } |
70 | | - $this->output(")", 'OracleTextSearch'); |
| 71 | + $this->output(")\n" ); |
71 | 72 | } |
72 | 73 | } |
73 | 74 | |