Add ITEM_TYPE_CUSTOM support to Zotlabs/Module/Display.php

This commit is contained in:
DM42.Net (Matt Dent) 2019-03-24 22:56:18 -04:00
parent 0a28207200
commit af84c4e6bd

View File

@ -175,6 +175,11 @@ class Display extends \Zotlabs\Web\Controller {
return '';
}
}
if ($target_item['item_type'] == ITEM_TYPE_CUSTOM) {
call_hooks('item_custom_display',$target_item);
notice( t('Page not found.') . EOL);
return '';
}
$static = ((array_key_exists('static',$_REQUEST)) ? intval($_REQUEST['static']) : 0);