Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
Composr
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Privacy statement
Keyboard shortcuts
?
What's new
6
Snippets
Groups
Projects
Show more breadcrumbs
Composr ecosystem
Composr
Commits
762f77c6
Commit
762f77c6
authored
2 years ago
by
Chris Graham
Browse files
Options
Downloads
Patches
Plain Diff
Fixed
MANTIS-4961
("Did you mean?" page recommender not working on PHP 8.1)
parent
f93ee67c
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
sources/site2.php
+2
-2
2 additions, 2 deletions
sources/site2.php
with
2 additions
and
2 deletions
sources/site2.php
+
2
−
2
View file @
762f77c6
...
...
@@ -301,8 +301,8 @@ function page_not_found($codename, $zone)
$dist
=
0.0
;
similar_text
(
$from
,
$to
,
$dist
);
$threshold
=
75.0
;
if
((
$dist
>
$threshold
)
&&
(
has_page_access
(
get_member
(),
$possibility
,
$zone
)))
{
$did_mean
[
$dist
]
=
$possibility
;
if
((
$dist
>
=
$threshold
)
&&
(
has_page_access
(
get_member
(),
$possibility
,
$zone
)))
{
$did_mean
[
intval
(
$dist
*
10000000.0
)
]
=
$possibility
;
}
}
ksort
(
$did_mean
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment