Skip to content

DRY: weathermap_footer_links() duplicated across two files #204

@somethingwithproof

Description

@somethingwithproof

Summary

weathermap_footer_links() is defined identically in both weathermap-cacti-plugin.php and weathermap-cacti-plugin-mgmt.php. The only difference is the mgmt version uses __() for i18n strings while the plugin version uses bare strings.

Proposed Fix

Move the function to a shared location (lib/ or setup.php), use the i18n version, and have both files call the shared function.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions