place images in /images/plantuml instead of /images
When PlantUML renders an image, it puts both the image and its uml directly into /images. Using an extension-specific subdirectory like /images/plantuml would make image management much easier and cleaner.
mkdir ./images/plantuml chmod 777 ./images/plantuml
vim LocalSettings.php wfLoadExtension( 'PlantUML' ); $wgPlantUmlPath = "$wgScriptPath/images/plantuml"; $wgPlantUmlDirectory = dirname( FILE ) . '/images/plantuml';
vim ./extensions/PlantUML/PlantUML.body.php
function getUploadDirectory() {
global $wgPlantUmlDirectory;
return $wgPlantUmlDirectory;
}
function getUploadPath() {
global $wgPlantUmlPath;
return $wgPlantUmlPath;
}
Modified the plugin for creating subdirectories /images/plantuml/aa/bb/cc/dd/ *.png https://gitlab.com/d.a.zaykov/plantuml
@dazaykov Would you like to take over this outdated project? I could invite you and make you owner ..
Yes, I'm ready to pick it up for a while. I need him now.