mirror of
https://github.com/processwire/processwire.git
synced 2025-08-12 09:44:38 +02:00
Fix issue processwire/processwire-issues#1404
This commit is contained in:
@@ -178,7 +178,8 @@ class LanguageTranslator extends Wire {
|
|||||||
// not a core module
|
// not a core module
|
||||||
$config = $this->wire()->config;
|
$config = $this->wire()->config;
|
||||||
$filename = $this->wire()->files->unixFileName($filename);
|
$filename = $this->wire()->files->unixFileName($filename);
|
||||||
if(strpos($filename, $config->urls($o)) === false && strpos($filename, "/$class/") !== false) {
|
$url = $config->urls($o);
|
||||||
|
if($url && strpos($filename, $url) === false && strpos($filename, "/$class/") !== false) {
|
||||||
// module likely in a symbolic link directory, so determine our own path for textdomain
|
// module likely in a symbolic link directory, so determine our own path for textdomain
|
||||||
// rather than using the one provided by ReflectionClass
|
// rather than using the one provided by ReflectionClass
|
||||||
list(, $filename) = explode("/$class/", $filename, 2);
|
list(, $filename) = explode("/$class/", $filename, 2);
|
||||||
|
Reference in New Issue
Block a user