diff --git a/CHANGELOG.md b/CHANGELOG.md index 5070f048..71e904df 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ### Fixed +- Fix drag and drop - Increased the maximum length of the language column to support longer locale codes ## [1.22.1] - 2025-10-10 diff --git a/setup.php b/setup.php index eb0f5e4c..51dc8a11 100644 --- a/setup.php +++ b/setup.php @@ -205,15 +205,12 @@ function plugin_init_fields() */ function plugin_fields_script_endswith($scriptname) { - //append plugin directory to avoid dumb errors... - $scriptname = 'fields/front/' . $scriptname; - $script_name = $_SERVER['SCRIPT_NAME']; - - return str_ends_with($script_name, $scriptname); + return str_contains($_SERVER['REQUEST_URI'], $scriptname); } + /** * Get the name and the version of the plugin * REQUIRED