FIX: defines an enabled_site_setting
This will amongst other things prevent to load plugin's code if the plugin is disabled.
This commit is contained in:
		
							parent
							
								
									1e6e3bb3e9
								
							
						
					
					
						commit
						75fb2bf892
					
				|  | @ -1,5 +1,7 @@ | |||
| en: | ||||
|   site_settings: | ||||
|     discourse_adplugin_enabled: Enable the discourse-adplugin. | ||||
| 
 | ||||
|     no_ads_for_personal_messages: "Don't show ads when viewing personal messages" | ||||
|     no_ads_for_restricted_categories: "Don't show ads in categories that aren't visible to everyone." | ||||
|     no_ads_for_groups: "Don't show ads to users in these groups." | ||||
|  |  | |||
|  | @ -1,4 +1,7 @@ | |||
| ad_plugin: | ||||
|   discourse_adplugin_enabled: | ||||
|     client: true | ||||
|     default: true | ||||
|   no_ads_for_personal_messages: | ||||
|     client: true | ||||
|     default: true | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue