Closed (fixed)
Project:
Simple FB Connect
Version:
8.x-3.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Jan 2017 at 14:44 UTC
Updated:
22 Jan 2017 at 21:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
superbiche commentedComment #3
masipila commentedHi,
Thanks for reporting and for the patch!
Could you elaborate this a bit more so that I can be more confident committing this? In practise, what is the whole directory structure when you're using drupal-scaffold and what are the other differences?
Is it jist the .install runtime check that doesn't work or is there something else that isn't working (e.g. are the profile pics saved to correct directory etc)?
Markus
Comment #4
superbiche commentedHi,
You're welcome :)
Well, I didn't check if pictures were properly saved. I will do this now.
This is the root directory structure of a composer drupal-scaffold project:
.git/
.gitignore
.travis.yml
LICENSE
composer.json
composer.lock
config/
console/
drush/
lib/
log/
phpunit.xml.dist
scripts/
utils/
vendor/
web/
So even if I didn't test, I guess pictures are properly saved, as web/ is the web document root as well as DRUPAL_ROOT.
The patch simply checks if DRUPAL_ROOT . '/vendor' is a directory, and otherwise tries with dirname(DRUPAL_ROOT) . '/vendor'
Trivial but I needed a quick fix :)
I'll let you know about the pictures.
Michel
Comment #5
masipila commentedHi,
got it, thanks for the explanation. Could you please add a line or two of inline comments explaining what is going on so that it will be easier for others to understand the code when looking at it later?
Cheers,
Markus
Comment #6
superbiche commentedThere you are!
Ah, and thanks for the contrib. My client decided *today* the other module wasn't flexible enough, and the website is going live *tomorrow*. This module just saved my day :D
Comment #8
masipila commentedCommitted to 8.x-3.x-dev.
Thanks once more for your contribution!
Cheers,
Markus
Comment #9
superbiche commentedGreat! You're welcome!
Oh and yes, the picture is correctly saved in my case :)
Best,
Michel