Skip to content

Commit 2df992e

Browse files
Fix for search issue
1 parent 2a4438b commit 2df992e

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

info.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,11 @@
3636
3737
DEVELOPMENT HISTORY:
3838
39+
v1.1.7 (Bernd; 27/12/2021)
40+
! Fix for search issue, see https://forum.wbce.org/viewtopic.php?pid=38845#p38845
41+
3942
v1.1.6 (Florian Meerwinck; 04/10/2021)
40-
! Fix PHP 8 Deprecations (by some adaptions from OfA for WebsiteBaker
43+
! Fix PHP 8 Deprecations (by some adaptions from OfA for WebsiteBaker)
4144
4245
v1.1.5 (Christoph Marti; 06/20/2020)
4346
+ Only export page settings of the current section_id (page that has initiated the export)
@@ -305,7 +308,7 @@
305308
$renamed_to = $mod_name == 'oneforall' ? '' : '(renamed to <strong>'.$module_name.'</strong>) ';
306309

307310
$module_function = 'page';
308-
$module_version = '1.1.6';
311+
$module_version = '1.1.7';
309312
$module_platform = '2.8.x';
310313
$module_author = 'Christoph Marti';
311314
$module_license = 'GNU General Public License';

install.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
$file_contents = file_get_contents($file_path);
9999
$file_contents = str_replace($needle, $mod_name, $file_contents, $count);
100100
// Write replaced string back to file
101-
if ($count == 2) {
101+
if ($count == 3) {
102102
if (file_put_contents($file_path, $file_contents) === false) {
103103
$admin->print_error('<p style="font-weight: bold;">Failed to modify the search file <code>'.$search_file.'</code>.</p><p>Please modify it manually by replacing the 2 placeholders <code>'.$needle.'</code> by the new module name &quot;'.$mod_name.'&quot;.</p>', ADMIN_URL.'/modules/index.php?advanced');
104104
}

0 commit comments

Comments
 (0)