← Back to team overview

mahara-contributors team mailing list archive

[Bug 1964515] [NEW] validate_plugin() in wrong location

 

Public bug reported:

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.

** Affects: mahara
     Importance: Low
         Status: New

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: mahara-contributors
https://bugs.launchpad.net/bugs/1964515

Title:
  validate_plugin() in wrong location

Status in Mahara:
  New

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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1964515/+subscriptions



Follow ups