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
build: Upgrade mediawiki-codesniffer from 26.0.0 to 28.0.0
[lhc/web/wiklou.git]
/
maintenance
/
populateChangeTagDef.php
diff --git
a/maintenance/populateChangeTagDef.php
b/maintenance/populateChangeTagDef.php
index
6c46597
..
2be690b
100644
(file)
--- a/
maintenance/populateChangeTagDef.php
+++ b/
maintenance/populateChangeTagDef.php
@@
-74,12
+74,15
@@
class PopulateChangeTagDef extends LoggedUpdateMaintenance {
private function setUserDefinedTags() {
$dbr = $this->lbFactory->getMainLB()->getConnection( DB_REPLICA );
private function setUserDefinedTags() {
$dbr = $this->lbFactory->getMainLB()->getConnection( DB_REPLICA );
- $userTags = $dbr->selectFieldValues(
- 'valid_tag',
- 'vt_tag',
- [],
- __METHOD__
- );
+ $userTags = null;
+ if ( $dbr->tableExists( 'valid_tag' ) ) {
+ $userTags = $dbr->selectFieldValues(
+ 'valid_tag',
+ 'vt_tag',
+ [],
+ __METHOD__
+ );
+ }
if ( empty( $userTags ) ) {
$this->output( "No user defined tags to set, moving on...\n" );
if ( empty( $userTags ) ) {
$this->output( "No user defined tags to set, moving on...\n" );