mirror of
https://github.com/joomla-extensions/jedchecker.git
synced 2024-11-11 07:41:04 +00:00
Merge pull request #31 from demis-palma/fix-4
Fixed case in classes and method names
This commit is contained in:
commit
99813ca5a4
@ -14,6 +14,6 @@ defined('_JEXEC') or die ('Restricted access');
|
||||
*
|
||||
* @since 1.0
|
||||
*/
|
||||
class JedcheckerController extends JControllerlegacy
|
||||
class JedcheckerController extends JControllerLegacy
|
||||
{
|
||||
}
|
||||
|
@ -19,7 +19,7 @@ jimport('joomla.filesystem.archive');
|
||||
*
|
||||
* @since 1.0
|
||||
*/
|
||||
class JedcheckerControllerPolice extends JControllerlegacy
|
||||
class JedcheckerControllerPolice extends JControllerLegacy
|
||||
{
|
||||
/**
|
||||
* Runs all the rules on the given directory
|
||||
|
@ -18,7 +18,7 @@ jimport('joomla.filesystem.archive');
|
||||
*
|
||||
* @since 1.0
|
||||
*/
|
||||
class JedcheckerControllerUploads extends JControllerlegacy
|
||||
class JedcheckerControllerUploads extends JControllerLegacy
|
||||
{
|
||||
/**
|
||||
* Constructor.
|
||||
|
@ -71,7 +71,7 @@ class JedcheckerRulesXMLinfo extends JEDcheckerRule
|
||||
*/
|
||||
protected function find($file)
|
||||
{
|
||||
$xml = JFactory::getXML($file);
|
||||
$xml = JFactory::getXml($file);
|
||||
|
||||
// Failed to parse the xml file.
|
||||
// Assume that this is not a extension manifest
|
||||
|
@ -69,7 +69,7 @@ class JedcheckerRulesXMLlicense extends JEDcheckerRule
|
||||
*/
|
||||
protected function find($file)
|
||||
{
|
||||
$xml = JFactory::getXML($file);
|
||||
$xml = JFactory::getXml($file);
|
||||
|
||||
// Failed to parse the xml file.
|
||||
// Assume that this is not a extension manifest
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
JHTML::_('behavior.framework', true);
|
||||
JHtml::_('behavior.framework', true);
|
||||
JHtml::_('behavior.formvalidation');
|
||||
JHtml::_('behavior.keepalive');
|
||||
JHtml::stylesheet('media/com_jedchecker/css/css.css');
|
||||
@ -53,7 +53,7 @@ JHtml::script('media/com_jedchecker/js/police.js');
|
||||
<span class="icon-upload "></span> <?php echo JText::_('JSUBMIT'); ?>
|
||||
</button>
|
||||
<input type="hidden" name="task" value=""/>
|
||||
<?php echo JHTML::_('form.token'); ?>
|
||||
<?php echo JHtml::_('form.token'); ?>
|
||||
</fieldset>
|
||||
</form>
|
||||
</div>
|
||||
|
@ -28,7 +28,7 @@ class JedcheckerViewUploads extends JViewLegacy
|
||||
public function display($tpl = null)
|
||||
{
|
||||
$this->setToolbar();
|
||||
$this->jsOptions['url'] = JURI::base();
|
||||
$this->jsOptions['url'] = JUri::base();
|
||||
$this->jsOptions['rules'] = $this->getRules();
|
||||
parent::display($tpl);
|
||||
}
|
||||
@ -61,19 +61,19 @@ class JedcheckerViewUploads extends JViewLegacy
|
||||
{
|
||||
if ($this->filesExist('archives'))
|
||||
{
|
||||
JToolBarHelper::custom('uploads.unzip', 'folder', 'folder', 'unzip', false);
|
||||
JToolbarHelper::custom('uploads.unzip', 'folder', 'folder', 'unzip', false);
|
||||
}
|
||||
|
||||
if ($this->filesExist('unzipped'))
|
||||
{
|
||||
JToolBarHelper::custom('police.check', 'search', 'search', 'Check', false);
|
||||
JToolbarHelper::custom('police.check', 'search', 'search', 'Check', false);
|
||||
}
|
||||
|
||||
JToolBarHelper::title('JED checker');
|
||||
JToolbarHelper::title('JED checker');
|
||||
|
||||
if (JFactory::getUser()->authorise('core.admin', 'com_jedchecker'))
|
||||
{
|
||||
JToolBarHelper::preferences('com_jedchecker');
|
||||
JToolbarHelper::preferences('com_jedchecker');
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user