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
a193ea4d
Commit
a193ea4d
authored
May 11, 2017
by
Dominik Hebeler
Browse files
Update ImageController.php
parent
663d39c7
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/Http/Controllers/ImageController.php
View file @
a193ea4d
...
...
@@ -11,6 +11,7 @@ class ImageController extends Controller
{
public
function
generateImage
(
Request
$request
)
{
/*
#Piwik Code
PiwikTracker::$URL = 'http://piwik.metager3.de';
$piwikTracker = new PiwikTracker($idSite = 1);
...
...
@@ -23,7 +24,7 @@ class ImageController extends Controller
// Sendet Tracker request per http
$piwikTracker->doTrackPageView($site);
*/
$path
=
public_path
()
.
'/img/1px.png'
;
$fileType
=
File
::
type
(
$path
);
$response
=
Response
::
make
(
File
::
get
(
$path
),
200
);
...
...
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