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

WIP - A few more consequences of the Namespace #53

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

PipoCanaja
Copy link
Contributor

Back here. Seems that more changes are needed.
@laf: do you think this is the right way to get the short class name (without namespace) or should it be done another way ?

At least this PR makes Weathermap completely operational now.

@PipoCanaja
Copy link
Contributor Author

Will have to check librenms/librenms#8917 as it may just solve and we revert to the original state.

@PipoCanaja PipoCanaja changed the title A few more consequences of the Namespace WIP - A few more consequences of the Namespace Jul 17, 2018
Weathermap.php Outdated
@@ -16,21 +16,29 @@ public static function menu() {
//Create submenu
$submenu = ' <ul class="dropdown-menu scrollable-menu">';
$count = 0;

//getShortName - might make sense to include this ShortName code into Plugin class somewhere ?
Copy link
Contributor

@murrant murrant Jul 17, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can just use __CLASS__ can't you?

@PipoCanaja
Copy link
Contributor Author

Ok. Looks much better after the fix librenms/librenms#8917 . Reverting the namespace.

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

Successfully merging this pull request may close these issues.

2 participants