Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
B
bat_api
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
bat_api
Commits
f93370c6
Commit
f93370c6
authored
Mar 22, 2016
by
Nicolò Caruso
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check if prefix is setted
parent
b662cc93
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
bat_api.module
bat_api.module
+2
-2
No files found.
bat_api.module
View file @
f93370c6
...
...
@@ -569,7 +569,7 @@ function bat_api_services_events_index($target_ids, $target_types, $target_entit
$events_json
=
array
();
foreach
(
$types
as
$type
)
{
$prefix
=
$databases
[
'default'
][
'default'
][
'prefix'
]
;
$prefix
=
(
isset
(
$databases
[
'default'
][
'default'
][
'prefix'
]))
?
$databases
[
'default'
][
'default'
][
'prefix'
]
:
''
;
$event_store
=
new
DrupalDBStore
(
$type
,
DrupalDBStore
::
BAT_EVENT
,
$prefix
);
$start_date_object
=
new
DateTime
(
$start_date
);
...
...
@@ -676,7 +676,7 @@ function bat_api_services_events_index_calendar($unit_ids, $unit_types, $start_d
$controller
=
entity_get_controller
(
$target_entity_type
);
// For each type of event create a state store and an event store
$prefix
=
$databases
[
'default'
][
'default'
][
'prefix'
]
;
$prefix
=
(
isset
(
$databases
[
'default'
][
'default'
][
'prefix'
]))
?
$databases
[
'default'
][
'default'
][
'prefix'
]
:
''
;
$event_store
=
new
DrupalDBStore
(
$type
,
DrupalDBStore
::
BAT_EVENT
,
$prefix
);
$start_date_object
=
new
DateTime
(
$start_date
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment