sleemanj / xinha

WYSIWYG HTML Editor Component (turns <textarea> into HTML editors)
http://trac.xinha.org/
Other
13 stars 2 forks source link

MootoolsFileManager: «Deprecated: Required parameter $persistent_edits follows optional parameter...» #1736

Open giulioantonio opened 1 year ago

giulioantonio commented 1 year ago

hi, I would like to report that after switching to php 8 I am having this problem in the MootoolsFileManager plugin:

Deprecated: Required parameter $persistent_edits follows optional parameter $prefetch in /xinha/plugins/MootoolsFileManager/mootools-filemanager/Assets/Connector/FileManager.php on line 613; grateful if anyone would take a look at it.

abs_xinha_pict

giulioantonio commented 1 year ago

I think it can be solved simply like this (it works): (line 613)

// old // public function init($fm_obj, $legal_url, $prefetch = false, $persistent_edits) // new public function init($fm_obj, $legal_url, $persistent_edits, $prefetch = false)

but for everyone it's better if someone more experienced than me takes a look.

sleemanj commented 1 year ago

No you can't change the order, you should change instead like public function init($fm_obj, $legal_url, $prefetch = false, $persistent_edits = false)Message ID: @.***>

giulioantonio commented 1 year ago

thanks for your help