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:
Roan Kattouw 2016-11-03 18:20:11 -07:00 committed by Legoktm
parent 08020a9226
commit fc3b723d37

View file

@ -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',