dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Fix typo in word compatibility"
[lhc/web/wiklou.git]
/
maintenance
/
rebuildtextindex.php
diff --git
a/maintenance/rebuildtextindex.php
b/maintenance/rebuildtextindex.php
index
5971d5e
..
f06e62b
100644
(file)
--- a/
maintenance/rebuildtextindex.php
+++ b/
maintenance/rebuildtextindex.php
@@
-56,17
+56,17
@@
class RebuildTextIndex extends Maintenance {
// Shouldn't be needed for Postgres
$this->db = $this->getDB( DB_MASTER );
if ( $this->db->getType() == 'postgres' ) {
// Shouldn't be needed for Postgres
$this->db = $this->getDB( DB_MASTER );
if ( $this->db->getType() == 'postgres' ) {
- $this->
error( "This script is not needed when using Postgres.\n", true
);
+ $this->
fatalError( "This script is not needed when using Postgres.\n"
);
}
if ( $this->db->getType() == 'sqlite' ) {
if ( !DatabaseSqlite::getFulltextSearchModule() ) {
}
if ( $this->db->getType() == 'sqlite' ) {
if ( !DatabaseSqlite::getFulltextSearchModule() ) {
- $this->
e
rror( "Your version of SQLite module for PHP doesn't "
- . "support full-text search (FTS3).\n"
, true
);
+ $this->
fatalE
rror( "Your version of SQLite module for PHP doesn't "
+ . "support full-text search (FTS3).\n" );
}
if ( !$this->db->checkForEnabledSearch() ) {
}
if ( !$this->db->checkForEnabledSearch() ) {
- $this->
e
rror( "Your database schema is not configured for "
- . "full-text search support. Run update.php.\n"
, true
);
+ $this->
fatalE
rror( "Your database schema is not configured for "
+ . "full-text search support. Run update.php.\n" );
}
}
}
}
@@
-157,5
+157,5
@@
class RebuildTextIndex extends Maintenance {
}
}
}
}
-$maintClass =
"RebuildTextIndex"
;
+$maintClass =
RebuildTextIndex::class
;
require_once RUN_MAINTENANCE_IF_MAIN;
require_once RUN_MAINTENANCE_IF_MAIN;