Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 2 additions & 5 deletions setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down