mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 20:00:37 +02:00
Closes #4922 - Option for plugins to extend notification routing.
This commit is contained in:
@@ -318,13 +318,7 @@ class plugin_notify_admin_ui extends e_admin_ui
|
|||||||
$text2 .= "<div class='buttons-bar center'>". $frm->admin_button('update', LAN_UPDATE,'update') . "</div>";
|
$text2 .= "<div class='buttons-bar center'>". $frm->admin_button('update', LAN_UPDATE,'update') . "</div>";
|
||||||
$text2 .= $frm->close();
|
$text2 .= $frm->close();
|
||||||
|
|
||||||
|
|
||||||
// $ns -> tablerender(NT_LAN_1, $mes->render() . $text2);
|
|
||||||
|
|
||||||
return $text2;
|
return $text2;
|
||||||
// return;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -496,7 +496,7 @@ class notify
|
|||||||
|
|
||||||
$this->send('admin_news_notify', $data['news_title'], $message, $img);
|
$this->send('admin_news_notify', $data['news_title'], $message, $img);
|
||||||
|
|
||||||
// print_a($message);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -78,7 +78,7 @@ class _blank_notify extends notify
|
|||||||
* Custom Method to handle notification.
|
* Custom Method to handle notification.
|
||||||
* REMOVE THIS METHOD WHEN NOT IN USE
|
* REMOVE THIS METHOD WHEN NOT IN USE
|
||||||
* @param array $data
|
* @param array $data
|
||||||
* @return string
|
* @return array
|
||||||
*/
|
*/
|
||||||
function other_type($data)
|
function other_type($data)
|
||||||
{
|
{
|
||||||
|
@@ -64,8 +64,6 @@ class notifyTest extends \Codeception\Test\Unit
|
|||||||
'legacy' => '0',
|
'legacy' => '0',
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testSend()
|
public function testSend()
|
||||||
|
Reference in New Issue
Block a user