git.gnu.io has moved to IP address 209.51.188.249 -- please double check where you are logging in.

Commit 376a19f3 authored by Evan Prodromou's avatar Evan Prodromou

Plugin::path() checks local/plugins/ first

parent aa14a14f
......@@ -159,7 +159,12 @@ class Plugin
}
if (empty($path)) {
$path = common_config('site', 'path') . '/plugins/';
// XXX: extra stat().
if (@file_exists(INSTALLDIR.'/local/plugins/'.$plugin.'/'.$relative)) {
$path = common_config('site', 'path') . '/local/plugins/';
} else {
$path = common_config('site', 'path') . '/plugins/';
}
}
if ($path[strlen($path)-1] != '/') {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment