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

Navbar modules not follow the core logic #649

Open
tgely opened this issue Aug 11, 2019 · 0 comments
Open

Navbar modules not follow the core logic #649

tgely opened this issue Aug 11, 2019 · 0 comments

Comments

@tgely
Copy link
Contributor

tgely commented Aug 11, 2019

$nav_array = explode(';', MODULE_CONTENT_NAVBAR_INSTALLED);
$navbar_modules = array();
foreach ( $nav_array as $nbm ) {
$class = substr($nbm, 0, strrpos($nbm, '.'));
if ( !class_exists($class) ) {
$this->lang->loadDefinitions('modules/navbar_modules/' . pathinfo($nbm, PATHINFO_FILENAME));
require('includes/modules/navbar_modules/' . $class . '.php');
}
$nav = new $class();
if ( $nav->isEnabled() ) {
$navbar_modules[] = $nav->getOutput();
}
}

by the way oscTemplate class has buildBlocks() but now the codebase is foreign on this logic
Some little mod could equalize the problem..

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

1 participant