Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
site_verify
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
site_verify
Commits
4199092f
Commit
4199092f
authored
12 years ago
by
dmitriy.trt
Committed by
Ted Cooper
3 months ago
Browse files
Options
Downloads
Patches
Plain Diff
[
#1694022
] by dmitriy.trt: Support empty verification file.
parent
82b35843
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!4
[#1694022]: support of empty verification file.
Pipeline
#329089
passed
3 months ago
Stage: build
Stage: validate
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
site_verify.module
+4
-5
4 additions, 5 deletions
site_verify.module
with
4 additions
and
5 deletions
site_verify.module
+
4
−
5
View file @
4199092f
...
...
@@ -211,11 +211,10 @@ function site_verify_get_engines() {
*/
function
site_verify_output
(
$svid
)
{
$verification
=
site_verify_load
(
$svid
);
if
(
$verification
[
'file
_contents
'
]
&&
$verification
[
'engine'
][
'file_contents'
])
{
if
(
$verification
[
'file'
]
&&
$verification
[
'engine'
][
'file_contents'
])
{
echo
$verification
[
'file_contents'
];
return
;
}
else
{
drupal_set_title
(
t
(
'Verification page'
));
return
t
(
'This is a verification page for the !title search engine.'
,
array
(
'!title'
=>
$verification
[
'engine'
][
'name'
]));
}
drupal_not_found
();
}
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