Closed (fixed)
Project:
Open Social
Version:
8.x-1.x-dev
Component:
Code (back-end)
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Nov 2017 at 13:56 UTC
Updated:
8 Mar 2019 at 12:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
slowflyer commentedHi Jochem,
after we already solved parts of that issue on:
https://www.drupal.org/project/social/issues/2907743
I looked on the work left over.
I looked at all occurences of "socialsaas" and "->get('system.theme')" in the code.
Only:
social_activity.install
socialblue/theme-settings.php
social_core.install
still had the old hard coded syntax to check for socialsaas or socialblue.
I replaced it in:
social_activity.install
socialblue/theme-settings.php
and improved / corrected the comment in improved_theme_settings.module
This is reflected in the patch attached.
I did not change social_core.install, because during install, there is no need to check for theme inheritance.
The code only checks for socialbase as basetheme. There is no need to check for socialblue as well, because socialblue will have still have socialbase as basetheme and
\Drupal::service('theme.manager')->getActiveTheme()->getBaseThemes()returns all basethemes used to build the current theme.
Comment #3
jochemvn commentedHi Ulrich,
That 's really great. I would also like to fix the issue from: https://www.drupal.org/project/social/issues/2924676 in this story. There should be some kind of hierarchy, that if for your current theme there are not settings, the base theme should either take over. That way we don't have to worry about subthemes not having certain values defined in the basetheme(s)
Jochem
Comment #4
tc33133 commentedJochem,
I think this is a great idea, and it would be helpful to include block layout as well. For instance, using a custom subtheme, I'm unaware of the Social Private Message stuff, unless I switch to socialblue theme. Even if its some text included in the Changelog or some instruction on how the new components are integrated.
Thanks!
Comment #5
jaapjan commentedI think this is already done? As far as I know there is no reference anymore and they have been replaced in the issue slowflyer linked.
tc33133, you are right. That would be a great addition, but perhaps should be handled in a different story?