Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cleantalk
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
cleantalk
Commits
2608d388
Commit
2608d388
authored
8 months ago
by
anton1211
Browse files
Options
Downloads
Patches
Plain Diff
Fix. Defining the path to the js file
parent
3f6ad223
No related branches found
No related tags found
1 merge request
!31
Fix. Defining the path to the js file
Pipeline
#259211
failed
6 months ago
Stage: test
Changes
2
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/Cleantalk/Custom/StorageHandler/StorageHandler.php
+3
-1
3 additions, 1 deletion
lib/Cleantalk/Custom/StorageHandler/StorageHandler.php
src/EventSubscriber/BootSubscriber.php
+3
-1
3 additions, 1 deletion
src/EventSubscriber/BootSubscriber.php
with
6 additions
and
2 deletions
lib/Cleantalk/Custom/StorageHandler/StorageHandler.php
+
3
−
1
View file @
2608d388
...
...
@@ -36,6 +36,8 @@ class StorageHandler implements \Cleantalk\Common\StorageHandler\StorageHandler
if
(
!
empty
(
static
::
$jsLocation
)
)
{
return
static
::
$jsLocation
;
}
return
\Drupal
::
request
()
->
getSchemeAndHttpHost
()
.
"/modules/cleantalk/js/apbct-functions.js"
;
return
\Drupal
::
request
()
->
getSchemeAndHttpHost
()
.
\Drupal
::
service
(
'extension.list.module'
)
->
getPath
(
'cleantalk'
)
.
"/js/apbct-functions.js"
;
}
}
This diff is collapsed.
Click to expand it.
src/EventSubscriber/BootSubscriber.php
+
3
−
1
View file @
2608d388
...
...
@@ -111,7 +111,9 @@ class BootSubscriber implements HttpKernelInterface
if
(
\Drupal
::
config
(
'cleantalk.settings'
)
->
get
(
'cleantalk_sfw'
))
{
$cleantalk_key
=
trim
(
\Drupal
::
config
(
'cleantalk.settings'
)
->
get
(
'cleantalk_authkey'
));
StorageHandler
::
$jsLocation
=
$request
->
getSchemeAndHttpHost
()
.
"/modules/cleantalk/js/apbct-functions.js"
;
StorageHandler
::
$jsLocation
=
$request
->
getSchemeAndHttpHost
()
.
\Drupal
::
service
(
'extension.list.module'
)
->
getPath
(
'cleantalk'
)
.
"/js/apbct-functions.js"
;
if
(
$cleantalk_key
)
{
try
{
...
...
This diff is collapsed.
Click to expand it.
glomberg
@Glomberg
mentioned in merge request
!30 (closed)
·
5 months ago
mentioned in merge request
!30 (closed)
mentioned in merge request !30
Toggle commit list
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