Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OC v3 Compatible? #175

Open
chrisvidal opened this issue Mar 10, 2023 · 3 comments
Open

OC v3 Compatible? #175

chrisvidal opened this issue Mar 10, 2023 · 3 comments

Comments

@chrisvidal
Copy link

No description provided.

@gergo85
Copy link
Owner

gergo85 commented Mar 11, 2023

I haven't tested it yet, but it probably works.

@chrisvidal
Copy link
Author

i have tested and it is not working.

The plugin Rainlab/Translate removed the model Locale and it is used in the component Post line 91 foreach (\RainLab\Translate\Models\Locale::listEnabled() as $code => $locale) {

so it breaks.

I guess now we need to use the new model Site introduced in v3

@chrisvidal
Copy link
Author

replacing the line 91 in the component Post.php should do th trick for v3

foreach (\RainLab\Translate\Classes\Locale::listEnabled() as $code => $locale) {

but it would required to test first if we are on v3 or not maybe.
You can refer to this code which tackles the same issue.

malmic pushed a commit to malmic/oc-news that referenced this issue Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants