Ticket #803 (closed Bug: fixed)
Remove unnecessary require_once from codebase
| Reported by: | vipsoft | Owned by: | vipsoft |
|---|---|---|---|
| Priority: | normal | Milestone: | Piwik 0.4.2 |
| Component: | Core | Keywords: | |
| Cc: | Sensitive: |
Description
In #620, we implemented an autoloader. In this ticket, we clean up the code by removing unnecessary require_once statements. This will require some analysis.
- core/Piwik.php - add this as a special case to the autoloader or rename it to Helper.php (class Piwik_Helper)?
- some files contain multiple class definitions, e.g., core/Auth.php contains Piwik_Auth and Piwik_Auth_Result
- ./piwik.php - keep it as fast as possible; autoloading for a cache miss is ok
Don't change:
- naming of "core" & "plugins" folders
- FrontController.php and PluginsManager.php - they have their own autoloaders; don't change this
Change History
Note: See
TracTickets for help on using
tickets.
