Skip to content

Instantly share code, notes, and snippets.

@MisterPoppet
Created May 10, 2014 20:18
Show Gist options
  • Save MisterPoppet/917c4df8c6d809babd7f to your computer and use it in GitHub Desktop.
Save MisterPoppet/917c4df8c6d809babd7f to your computer and use it in GitHub Desktop.
Fixed Inspector Plugin
<?php
namespace Craft;
class InspectorPlugin extends BasePlugin
{
public function getName()
{
return Craft::t('Inspector');
}
public function getVersion()
{
return '1.0';
}
public function getDeveloper()
{
return 'Adrian Macneil';
}
public function getDeveloperUrl()
{
return 'http://adrianmacneil.com';
}
public function addTwigExtension()
{
Craft::import('plugins.inspector.twigextensions.InspectorTwigExtension');
return new InspectorTwigExtension();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment