mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-01-28 18:29:05 +01:00
fix: Remove remaining emailMarketing references from pluginHolder/views.py
Remove emailMarketing manage_url assignments that were left after skipping the plugin. These were causing issues.
This commit is contained in:
@@ -194,10 +194,7 @@ def installed(request):
|
||||
else:
|
||||
# Default: try /plugins/{plugin_dir}/settings/ or /plugins/{plugin_dir}/
|
||||
# Only set if plugin is installed (we can't know if the URL exists otherwise)
|
||||
# Special handling for emailMarketing
|
||||
if plugin == 'emailMarketing':
|
||||
data['manage_url'] = '/emailMarketing/'
|
||||
elif os.path.exists(completePath):
|
||||
if os.path.exists(completePath):
|
||||
# Check if settings route exists, otherwise use main plugin URL
|
||||
settings_route = f'/plugins/{plugin}/settings/'
|
||||
main_route = f'/plugins/{plugin}/'
|
||||
@@ -361,10 +358,6 @@ def installed(request):
|
||||
data['manage_url'] = url_elem.text
|
||||
else:
|
||||
# Default to /plugins/{plugin}/ for regular plugins
|
||||
# Special handling for emailMarketing
|
||||
if plugin == 'emailMarketing':
|
||||
data['manage_url'] = '/emailMarketing/'
|
||||
else:
|
||||
# Default to main plugin route (most plugins work from main route)
|
||||
data['manage_url'] = f'/plugins/{plugin}/'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user