1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-17 12:10:45 +02:00

PR #189 - Fix issue with AdminThemeUikit and a few minor broken image references

Co-authored-by: BernhardBaumrock <office@baumrock.com>
This commit is contained in:
Ryan Cramer
2021-05-27 14:37:06 -04:00
parent 65a4e187eb
commit 09877656ef
2 changed files with 3 additions and 2 deletions

View File

@@ -113,7 +113,8 @@ class AdminThemeUikitCss extends WireData {
$less->setOption('compress', $this->compress);
$less->addFile($this->getAdminLessFile());
$less->addFiles($lessFiles);
if(!$less->saveCss($cssFile)) throw new WireException("Compile error: $cssFile");
$options = array('replacements' => array('../pw/images/' => 'images/'));
if(!$less->saveCss($cssFile, $options)) throw new WireException("Compile error: $cssFile");
$this->message(sprintf($this->_('Compiled: %s'), $cssFile), Notice::noGroup);
$cssTime = filemtime($cssFile);
} catch(\Exception $e) {

File diff suppressed because one or more lines are too long