mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Thanks
synced 2024-11-24 06:53:46 +00:00
Don't register flow-thank when Flow is not installed
This causes issues with uninstalling Flow. Bug: T148611 Change-Id: I2a282b06848e0e2074bb69d12b7aed143204fd2e
This commit is contained in:
parent
08020a9226
commit
fc3b723d37
|
@ -187,16 +187,18 @@ class ThanksHooks {
|
|||
],
|
||||
];
|
||||
|
||||
$notifications['flow-thank'] = [
|
||||
'category' => 'edit-thank',
|
||||
'group' => 'positive',
|
||||
'section' => 'message',
|
||||
'presentation-model' => 'EchoFlowThanksPresentationModel',
|
||||
'bundle' => [
|
||||
'web' => true,
|
||||
'expandable' => true,
|
||||
],
|
||||
];
|
||||
if ( class_exists( Flow\FlowPresentationModel::class ) ) {
|
||||
$notifications['flow-thank'] = [
|
||||
'category' => 'edit-thank',
|
||||
'group' => 'positive',
|
||||
'section' => 'message',
|
||||
'presentation-model' => 'EchoFlowThanksPresentationModel',
|
||||
'bundle' => [
|
||||
'web' => true,
|
||||
'expandable' => true,
|
||||
],
|
||||
];
|
||||
}
|
||||
|
||||
$icons['thanks'] = [
|
||||
'path' => 'Thanks/ThankYou.png',
|
||||
|
|
Loading…
Reference in a new issue