validate_plugin() in wrong location

Bug #1964515 reported by Gold
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Confirmed
Low
Unassigned

Bug Description

The function validate_plugin() is currently in htdocs/lib/upgrade.php. This function is used in many places throughout the codebase and upgrade.php needs to be required just for access to it.

Moving this to init.php would make it available everywhere. There may be better places, but this would be the first spot that comes to mind.

Tags: code-cleanup
Changed in mahara:
status: New → Confirmed
tags: added: code-cleanup
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.