-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathboot.php
More file actions
24 lines (18 loc) · 566 Bytes
/
boot.php
File metadata and controls
24 lines (18 loc) · 566 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php
use AndiLeni\search\Search;
if (rex::isBackend()) {
rex_extension::register('ART_CONTENT_UPDATED', function ($ep) {
$article = $ep->getArticle();
$article_id = $article->getId();
$search = new Search;
$search->update_article($article_id);
});
rex_extension::register('CAT_STATUS', function ($ep) {
$search = new Search;
$search->status_update($ep);
});
rex_extension::register('ART_STATUS', function ($ep) {
$search = new Search;
$search->status_update($ep);
});
}