When requesting a plugin template ignore global skin path(s)

pull/6566/head
Aleksander Machniak 6 years ago
parent 03425d1d2b
commit 4a896b46a7

@ -658,6 +658,11 @@ EOF;
// find skin template
$path = false;
foreach ($this->skin_paths as $skin_path) {
// when requesting a plugin template ignore global skin path(s)
if ($plugin && strpos($skin_path, $this->app->plugins->url) !== 0) {
continue;
}
$path = RCUBE_INSTALL_PATH . "$skin_path/templates/$name.html";
// fallback to deprecated template names

Loading…
Cancel
Save