Skip to content

Commit 09420fe

Browse files
committed
Remove unnecessary page_controls.inc usage
1 parent bbbc24e commit 09420fe

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

tools/project_manager/show_good_word_suggestions_detail.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
include_once($relPath.'Project.inc');
77
include_once($relPath.'slim_header.inc');
88
include_once($relPath.'Stopwatch.inc');
9-
include_once($relPath.'page_controls.inc');
109
include_once($relPath.'post_files.inc');
1110
include_once("./word_freq_table.inc");
1211

@@ -33,8 +32,7 @@
3332
"js_modules" => [
3433
"$code_url/tools/project_manager/show_word_context.js",
3534
],
36-
"js_data" => get_proofreading_interface_data_js() . "
37-
var showWordContext = $details;",
35+
"js_data" => "var showWordContext = $details;",
3836

3937
"body_attributes" => 'class="no-margin overflow-hidden" style="height: 100vh; width: 100vw;"',
4038
];

tools/project_manager/show_word_context.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
include_once($relPath.'LPage.inc');
66
include_once($relPath.'Project.inc');
77
include_once($relPath.'slim_header.inc');
8-
include_once($relPath.'page_controls.inc'); // get_proofreading_interface_data_js()
98
include_once($relPath.'post_files.inc'); // page_info_query()
109
include_once("./word_freq_table.inc"); // enforce_edit_authorization(), decode_word()
1110

@@ -32,9 +31,7 @@
3231
"js_modules" => [
3332
"$code_url/tools/project_manager/show_word_context.js",
3433
],
35-
"js_data" => get_proofreading_interface_data_js() . "
36-
var showWordContext = $details;",
37-
34+
"js_data" => "var showWordContext = $details;",
3835
"body_attributes" => 'class="no-margin overflow-hidden" style="height: 100vh; width: 100vw;"',
3936
];
4037

0 commit comments

Comments
 (0)