Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Stud.IP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Uni Osnabrück
Stud.IP
Commits
abf34ac0
Commit
abf34ac0
authored
8 months ago
by
Sebastian Biller
Committed by
Jan-Hendrik Willms
8 months ago
Browse files
Options
Downloads
Patches
Plain Diff
use global dynamic content var, fixes #4356
Closes #4356 Merge request
studip/studip!3157
parent
17425a55
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/models/StockImage.php
+4
-4
4 additions, 4 deletions
lib/models/StockImage.php
with
4 additions
and
4 deletions
lib/models/StockImage.php
+
4
−
4
View file @
abf34ac0
...
@@ -57,8 +57,8 @@ class StockImage extends \SimpleORMap
...
@@ -57,8 +57,8 @@ class StockImage extends \SimpleORMap
public
function
getPath
(
string
$size
=
self
::
SIZE_ORIGINAL
):
string
public
function
getPath
(
string
$size
=
self
::
SIZE_ORIGINAL
):
string
{
{
return
sprintf
(
return
sprintf
(
'%s/
public/pictures/
stock-images/%s'
,
'%s/stock-images/%s'
,
$GLOBALS
[
'
STUDIP_BASE
_PATH'
],
$GLOBALS
[
'
DYNAMIC_CONTENT
_PATH'
],
$this
->
getFilename
(
$size
)
$this
->
getFilename
(
$size
)
);
);
}
}
...
@@ -90,8 +90,8 @@ class StockImage extends \SimpleORMap
...
@@ -90,8 +90,8 @@ class StockImage extends \SimpleORMap
}
}
return
sprintf
(
return
sprintf
(
'%s
pictures
/stock-images/%s'
,
'%s/stock-images/%s'
,
$GLOBALS
[
'
ABSOLUTE_URI_STUDIP
'
],
$GLOBALS
[
'
DYNAMIC_CONTENT_URL
'
],
$this
->
getFilename
(
$size
)
$this
->
getFilename
(
$size
)
);
);
}
}
...
...
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