Skip to content

Commit

Permalink
Use admin URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
franck-paul committed Jun 20, 2023
1 parent 6153d1a commit 6613bf5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion _define.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
'Rosetta',
'Manage post/page translations',
'Franck Paul',
'2.1',
'2.2',
[
'requires' => [['core', '2.26']],
'permissions' => dcCore::app()->auth->makePermissions([
Expand Down
8 changes: 6 additions & 2 deletions src/BackendBehaviors.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,12 @@ private static function adminEntryHeaders()
dcPage::jsJson('rosetta_entry', [
'msg' => ['confirm_remove_rosetta' => __('Are you sure to remove this translation?')],
'rosetta' => [
'popup_posts_url' => 'popup_posts.php?popup=1&plugin_id=rosetta&type=',
'plugin_url' => dcCore::app()->adminurl->get('admin.plugin.' . My::id(), [
'popup_posts_url' => dcCore::app()->adminurl->get('admin.popup_posts', [
'popup' => 1,
'plugin_id' => 'rosetta',
'type' => '',
], '&'),
'plugin_url' => dcCore::app()->adminurl->get('admin.plugin.' . My::id(), [
'popup_new' => 1,
'popup' => 1,
], '&'),
Expand Down

0 comments on commit 6613bf5

Please sign in to comment.