Skip to content
GitLab
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
e46ce8fa
Commit
e46ce8fa
authored
Nov 29, 2022
by
Dominik Hebeler
Browse files
increased visibility of donation advertisement
parent
4e102108
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
metager/app/MetaGer.php
View file @
e46ce8fa
...
...
@@ -446,16 +446,17 @@ class MetaGer
/**
* If there are no other advertisements we will only display our advertisements
* every so often. ~33% in this case
* ToDo set back to 5 once we do not want to advertise donations as much anymore
*/
if
(
/*sizeof($this->ads) === 0 &&*/
rand
(
1
,
100
)
>=
5
)
{
if
(
/*sizeof($this->ads) === 0 &&*/
rand
(
1
,
100
)
>=
34
)
{
return
;
}
$donationAd
=
new
\
App\Models\Result
(
"MetaGer"
,
__
(
"metaGer.ads.own.title"
),
LaravelLocalization
::
getLocalizedURL
(
LaravelLocalization
::
getCurrentLocale
()
,
route
(
"spende"
)),
LaravelLocalization
::
getLocalizedURL
(
LaravelLocalization
::
getCurrentLocale
()
,
route
(
"spende"
)),
LaravelLocalization
::
getLocalizedURL
(
null
,
route
(
"spende"
)),
LaravelLocalization
::
getLocalizedURL
(
null
,
route
(
"spende"
)),
__
(
"metaGer.ads.own.description"
),
"MetaGer"
,
"https://metager.de"
,
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment