Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typo in marketing block images file path #18

Open
staples1347 opened this issue Nov 28, 2023 · 5 comments
Open

Typo in marketing block images file path #18

staples1347 opened this issue Nov 28, 2023 · 5 comments
Assignees
Labels
Bug Something isn't working Can't do Can't be done for technical reasons Funding required Requires funding

Comments

@staples1347
Copy link

After upgrading the Adaptable theme version from 2.2.2 to 39.1.6 along with upgrading an old installation from Moodle 3.8 to Moodle 3.9, I noticed none of the Marketing Block images could no longer be found. Looking at the git code for moodle-theme_adaptable , it looks like possibly all versions within git are using adaptablemarkettingimages as the file path instead of adaptablemarketingimages which breaks older installations.

I was able to fix this by manually modifying lib.php , classes/toolbox.php , and libs/admin_confightmleditor.php to change it back to adaptablemarketingimages.

I'm thinking this will probably now need handling added for both adaptablemarketingimages and adaptablemarkettingimages so it doesn't break current modern installations. Would it be possible for you to fix this?

@staples1347 staples1347 added Bug Something isn't working Pending replication Pending the issue being replicated to demonstrate that it is indeed an issue. labels Nov 28, 2023
@staples1347 staples1347 changed the title Typo in marketing images file path Typo in marketing block images file path Nov 28, 2023
@gjb2048
Copy link
Collaborator

gjb2048 commented Nov 28, 2023 via email

@gjb2048
Copy link
Collaborator

gjb2048 commented Nov 28, 2023

Error is not mine, in that the codebase inherited in version 2.0.0 has 'adaptablemarketingimages' for the setting and 'adaptablemarkettingimages' for the serving of the image in lib.php. The setting was later fixed to 'adaptablemarkettingimages'. Both values can't be supported at the same time as the setting can only support one file area at a time.

@gjb2048 gjb2048 added Can't do Can't be done for technical reasons and removed Pending replication Pending the issue being replicated to demonstrate that it is indeed an issue. labels Nov 28, 2023
@gjb2048
Copy link
Collaborator

gjb2048 commented Nov 28, 2023

Therefore 'Can't do' and to change to 'adaptablemarketingimages' would mean a shed load of update code that I'm not prepared to do, as even though the extra 't' is annoying, this is an edge case and not worth the effort unless you'd be willing to compensate me for my time.

@gjb2048 gjb2048 closed this as completed Nov 28, 2023
@gjb2048
Copy link
Collaborator

gjb2048 commented Nov 28, 2023

Reopen to give time for a reply.

@gjb2048 gjb2048 reopened this Nov 28, 2023
@gjb2048 gjb2048 added the Funding required Requires funding label Nov 28, 2023
@staples1347
Copy link
Author

Okay thanks for looking into this. If I created a patch or pull request to support serving of images with both paths, would you still want payment to integrate into the main code?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Can't do Can't be done for technical reasons Funding required Requires funding
Projects
None yet
Development

No branches or pull requests

2 participants