2
0
Fork 0

add linkenabled config parameter (for other addons)

This commit is contained in:
ivan 2020-04-02 18:11:56 +03:00
parent 4b200a093e
commit b220e2b7a6
1 changed files with 2 additions and 0 deletions

View File

@ -15,11 +15,13 @@ function link_load() {
Route::register('addon/link/Mod_Link.php','link'); Route::register('addon/link/Mod_Link.php','link');
if (get_config('link','linkonhub')) if (get_config('link','linkonhub'))
register_hook('page_end', 'addon/link/link.php', 'link_active'); register_hook('page_end', 'addon/link/link.php', 'link_active');
set_config('link','linkenabled',1);
} }
function link_unload() { function link_unload() {
Route::unregister('addon/link/Mod_Link.php','link'); Route::unregister('addon/link/Mod_Link.php','link');
unregister_hook('page_end', 'addon/link/link.php', 'link_active'); unregister_hook('page_end', 'addon/link/link.php', 'link_active');
del_config('link','linkenabled');
} }
function link_plugin_admin(&$a,&$o) { function link_plugin_admin(&$a,&$o) {