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

Enable GeoGebra plugin to work totally offline #81

Closed
wants to merge 1 commit into from

Conversation

martignoni
Copy link
Contributor

Related to PR #70, but in the Moodle way :-)

- We add a new setting for the codebase of GeoGebra.
- This is useful eg. on a MoodleBox. See this discussion: https://discuss.moodlebox.net/d/361-offline-geogebra
@toniginard
Copy link
Member

  Hi @martignoni,

About this line:

$codebase = !empty($geogebra->codebase) ? $geogebra->codebase : get_config('geogebra', 'codebase');

In the pull request is not included the code to add the codebase at activity-level. So, if the intention is to allow this, the field in the database and in the form is missing. But if the intention is just to load the string from the general settings, there is no need to check $geogebra->codebase. What is your idea?

Best wishes,

Toni Ginard

@toniginard toniginard self-assigned this Mar 21, 2023
@toniginard
Copy link
Member

Hi @martignoni,

I have modified your commit to make the codebase an optional setting for the module. I also set the default value to empty because the default value set, in my tests, caused a javascript error (in an activity, I lost the javascript keyboard). This way, that setting would transparent to the users that are not interested in it.

I have pushed that change to master branch.

Best wishes,

@martignoni
Copy link
Contributor Author

Thanks, much appreciated. Closing.

@martignoni martignoni closed this Mar 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants