kopia lustrzana https://github.com/friendica/friendica
Add support for absolute file paths when removing addon
- This handles a rare case where absolute addon file paths were saved to the hook tablepull/14141/head
rodzic
f566c52624
commit
42c3faa450
|
@ -140,7 +140,8 @@ class Addon
|
|||
$func();
|
||||
}
|
||||
|
||||
Hook::delete(['file' => 'addon/' . $addon . '/' . $addon . '.php']);
|
||||
// Handles both relative and absolute file paths
|
||||
Hook::delete(['`file` LIKE ?', "%addon/$addon/$addon.php"]);
|
||||
|
||||
unset(self::$addons[array_search($addon, self::$addons)]);
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue