Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
MetaGer
Commits
8cd21cf8
Commit
8cd21cf8
authored
Feb 19, 2018
by
Karl Hasselbring
Browse files
Subcollections wurden falsch gezählt
parent
90065140
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/MetaGer.php
View file @
8cd21cf8
...
...
@@ -730,8 +730,8 @@ class MetaGer
{
$minisucherEngine
=
$xml
->
xpath
(
'suma[@name="minism"]'
)[
0
];
$minisucherEngine
[
"subcollections"
]
=
implode
(
", "
,
$subcollections
);
$subcollections
=
urlencode
(
"("
.
implode
(
" OR "
,
$subcollections
)
.
")"
);
$minisucherEngine
[
"formData"
]
=
str_replace
(
"<<SUBCOLLECTIONS>>"
,
$subcollections
,
$minisucherEngine
[
"formData"
]);
$subcollections
String
=
urlencode
(
"("
.
implode
(
" OR "
,
$subcollections
)
.
")"
);
$minisucherEngine
[
"formData"
]
=
str_replace
(
"<<SUBCOLLECTIONS>>"
,
$subcollections
String
,
$minisucherEngine
[
"formData"
]);
$minisucherEngine
[
"formData"
]
=
str_replace
(
"<<COUNT>>"
,
sizeof
(
$subcollections
)
*
10
,
$minisucherEngine
[
"formData"
]);
return
$minisucherEngine
;
}
...
...
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