From f1623266cfcedcf804a5fc40f7d02f0e3ff5ceec Mon Sep 17 00:00:00 2001 From: edalzell Date: Fri, 5 Apr 2019 08:46:33 -0700 Subject: [PATCH] 1.6.7 - remove unneeded js link (fixes #20) --- PowerTools/PowerToolsListener.php | 19 +++++++++---------- PowerTools/meta.yaml | 2 +- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/PowerTools/PowerToolsListener.php b/PowerTools/PowerToolsListener.php index 364b9f9..5cc8f3f 100755 --- a/PowerTools/PowerToolsListener.php +++ b/PowerTools/PowerToolsListener.php @@ -14,19 +14,17 @@ class PowerToolsListener extends Listener * @var array */ public $events = [ - 'cp.add_to_head' => 'powerUp', - 'cp.nav.created' => 'nav', + 'cp.add_to_head' => 'powerUp', + 'cp.nav.created' => 'nav', ]; /** - * Initialize Aggregator assets + * Load css * @return string css link */ public function powerUp() { - $html = $this->js->tag('powertools'); - $html .= $this->css->tag('powertools'); - return $html; + return $this->css->tag('powertools'); } /** @@ -39,14 +37,15 @@ public function nav($nav) // Only super users can see the PHP info /** @var \Statamic\Data\Users\User $user */ $user = User::getCurrent(); - if ($user && $user->isSuper()) - { + if ($user && $user->isSuper()) { $nav->addTo( 'tools', - Nav::item('PHP Info')->route('phpinfo')->icon('info')); + Nav::item('PHP Info')->route('phpinfo')->icon('info') + ); $nav->addTo( 'tools', - Nav::item('Logs')->route('logs')->icon('book')); + Nav::item('Logs')->route('logs')->icon('book') + ); } } } diff --git a/PowerTools/meta.yaml b/PowerTools/meta.yaml index 2820f71..0d26544 100755 --- a/PowerTools/meta.yaml +++ b/PowerTools/meta.yaml @@ -1,5 +1,5 @@ name: PowerTools -version: 1.6.6 +version: 1.6.7 description: Rebuild your search indexes, cache & asset presets, see your PHP Info and your log url: https://github.com/edalzell/statamic-powertools developer: Erin Dalzell