Make plugin file search paths backwards-compatible

Bug #1500290 reported by Aaron Wells
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
Medium
Aaron Wells
15.10
Fix Released
Undecided
Unassigned

Bug Description

As part of Bug 1465107 (specifically, commit 5d7bdaea24b4d), we rearranged some of the search paths for theme files. We added "plugintype" to the search path for plugin-related files stored within a theme, and we removed "static" from the path for all the things that used to be stored under the "static" directory.

We did this in order to make the organization of core plugins more self-evident, but it had the unfortunate side effect of breaking all the third-party plugins that hadn't been reorganized to the new standard.

It's pretty easy to fix this. We already search a few different places for each file. All we have to do is add the old locations to the search path as well. Then the majority of pre-15.10 plugins will continue to work seamlessly in 15.10, making this major version change easier to handle.

Tags: plugins
Revision history for this message
Mahara Bot (dev-mahara) wrote : A patch has been submitted for review

Patch for "master" branch: https://reviews.mahara.org/5383

Aaron Wells (u-aaronw)
Changed in mahara:
status: New → In Progress
Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/5383
Committed: https://git.nzoss.org.nz/mahara/mahara/commit/46c3a6d6d4c796208d3bd289c1bcbb89a7087398
Submitter: Aaron Wells (<email address hidden>)
Branch: master

commit 46c3a6d6d4c796208d3bd289c1bcbb89a7087398
Author: Aaron Wells <email address hidden>
Date: Mon Sep 28 16:28:08 2015 +1300

Make plugin file search paths back-compatible (Bug 1500290)

Add the old "static" search locations back into the search path
for plugin-related theme files. This will reduce the need to
"update" third-party plugins to work with 15.10.

behatnotneeded

Change-Id: I632003ec05ba78f5c1a4d7f6b2a58fff43296118

Aaron Wells (u-aaronw)
Changed in mahara:
status: In Progress → Fix Committed
Robert Lyon (robertl-9)
Changed in mahara:
status: Fix Committed → Fix Released
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.