mirror of
https://github.com/processwire/processwire.git
synced 2025-08-08 07:47:00 +02:00
Update ProcessModule to improve the readme URL generation
This commit is contained in:
@@ -2009,7 +2009,7 @@ class ProcessModule extends Process {
|
||||
$readmeFile = $readmePath . $basename;
|
||||
if(!file_exists($readmeFile)) continue;
|
||||
$icon = wireIconMarkup('file-text-o');
|
||||
$readmeUrl = str_replace('/edit', '/readme', $modules->getModuleEditUrl($moduleName));
|
||||
$readmeUrl = str_replace(array('/edit/?', '/edit?'), '/readme/?', $modules->getModuleEditUrl($moduleName));
|
||||
$supportFiles[$readmeType] = "<a class='pw-modal' href='$readmeUrl&type=$readmeType'>$icon $basename</a>";
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user