If the current request is a AJAX we need to fix the paths.
We need to get the root path based on the Referer, so we can use
the generated URLs in the template of the Referer. If we do not
generate the relative path based on the Referer, but based on the
currently requested URL, the generated URLs will not point to the
intended locations:
Referer desired URL desired relative root path
memberlist.php faq.php ./
memberlist.php app.php/foo/bar ./
app.php/foo memberlist.php ../
app.php/foo app.php/fox ../
app.php/foo/bar memberlist.php ../../
../page.php memberlist.php ./phpBB/
../sub/page.php memberlist.php ./../phpBB/
PHPBB3-12099
If extensions authors will use profilefield_base_migration.php
class as base class for creation of CPFs, the class need to be
extended a bit.
At the moment there are two issues with it:
It does not create entries for PROFILE_FIELDS_LANG_TABLE
(as it can't know what fields to create).
The migration is not "cleaning" the DBMS after purging
the extension and leaves everything except the CPF column.
Adding profilefield_language_data
PHPBB3-12786
* develop-ascraeus:
[ticket/12716] Use a string as session_id
[ticket/12716] Add regression test
[ticket/12716] Add the missing parameters in the call of clearToken
[ticket/12716] Add the missing parameters in the call of clearToken
* Nicofuma/ticket/12716:
[ticket/12716] Use a string as session_id
[ticket/12716] Add regression test
[ticket/12716] Add the missing parameters in the call of clearToken
[ticket/12764] Properly handle errors upon connecting to MySQLi database
* marc1706/ticket/12764:
[ticket/12764] Properly handle errors upon connecting to MySQLi database
* develop-ascraeus:
[ticket/12771] Shanging substr to strpos
[ticket/12771] Change var name
[ticket/12771] Bug in profilefield_base_migration when used in ext
[ticket/12771] Bug in profilefield_base_migration when used in ext
* lucifer4o/ticket/12771:
[ticket/12771] Shanging substr to strpos
[ticket/12771] Change var name
[ticket/12771] Bug in profilefield_base_migration when used in ext
* develop-ascraeus:
[ticket/12759] Fix type_bool and type_dropdown's UCP fields
[ticket/12759] Remove lang_helper from profilefields_manager
[ticket/12759] Cache all lang_options in lang_helper instead
[ticket/12759] Extra line in profilefields_manager
[ticket/12759] Cache lang_options for pm_viewmessage
[ticket/12759] Cache lang_options on memberlist
[ticket/12759] Add phpDoc comments to explain get_option_lang
[ticket/12759] Little code cleanup
[ticket/12759] Make sure $field_id has unique elements
[ticket/12759] Cache the lang options earlier
[ticket/12759] Cache lang options for all fields while displaying
[ticket/12759] Allow multiple fields to be loaded via get_option_lang
[ticket/12759] Resolve query flooding while displaying large number of custom profile fields
* Dragooon/ticket/12759:
[ticket/12759] Fix type_bool and type_dropdown's UCP fields
[ticket/12759] Remove lang_helper from profilefields_manager
[ticket/12759] Cache all lang_options in lang_helper instead
[ticket/12759] Extra line in profilefields_manager
[ticket/12759] Cache lang_options for pm_viewmessage
[ticket/12759] Cache lang_options on memberlist
[ticket/12759] Add phpDoc comments to explain get_option_lang
[ticket/12759] Little code cleanup
[ticket/12759] Make sure $field_id has unique elements
[ticket/12759] Cache the lang options earlier
[ticket/12759] Cache lang options for all fields while displaying
[ticket/12759] Allow multiple fields to be loaded via get_option_lang