Yes, all scripts in Elgg 2 are loaded asynchronously using requirejs. It looks like you're calling this from an inline script so it tries to fire before jquery has been loaded.
The proper solution is to convert your plugin js to AMD modules - http://learn.elgg.org/en/2.0/guides/javascript.html
A quick not-as-good-but-should-work solution is to wrap it in a require call
require(['jquery'], function($) {
$(document).ready(function () { frn_initialize(); });
});
Hello RvR and thanks for your quick answer!
the file you posted is the one containing the deprecated function of my example but how to know what function is to be used instead? My question is more general and I'm asking if there is some change log that reports deprecated functions vs new functions to be used to have same functionality.
Fabri,
there is no list of old function => new function.
In most cases the deprecation notice will tell you which function to use as the new function. But in your case the deprecation notice is "misused" to tell you the you are using a function which is marked as private and you should not use this function as private functions can be removed/changed without notice.
Try to avoid using private functions.
Just out of interest: why are you using this function?
Hello ,
thanks for the clarification,
I resolved using a query to show tables starting with my db_prefix and searching in the returned array the table I needed, I used it to avoid queries on not existing custom tables.
Fabri
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.