From baf2248debf1f200933940885f9bd93f3ff6b803 Mon Sep 17 00:00:00 2001 From: Daniel Dimitrov Date: Thu, 13 Dec 2012 11:08:35 +0100 Subject: [PATCH] joomla 3.0 compatibility --- .../components/com_jedchecker/controller.php | 2 +- .../com_jedchecker/controllers/police.raw.php | 3 +- .../com_jedchecker/controllers/uploads.php | 3 +- .../components/com_jedchecker/jedchecker.php | 13 +- .../views/uploads/tmpl/default.php | 162 +++++++++--------- .../views/uploads/view.html.php | 5 +- 6 files changed, 98 insertions(+), 90 deletions(-) diff --git a/source/administrator/components/com_jedchecker/controller.php b/source/administrator/components/com_jedchecker/controller.php index 99512b4..2b505ab 100644 --- a/source/administrator/components/com_jedchecker/controller.php +++ b/source/administrator/components/com_jedchecker/controller.php @@ -9,7 +9,7 @@ defined( '_JEXEC' ) or die ( 'Restricted access' ); -class jedcheckerController extends JController +class jedcheckerController extends JControllerlegacy { } \ No newline at end of file diff --git a/source/administrator/components/com_jedchecker/controllers/police.raw.php b/source/administrator/components/com_jedchecker/controllers/police.raw.php index ad95d8e..ba65bd3 100644 --- a/source/administrator/components/com_jedchecker/controllers/police.raw.php +++ b/source/administrator/components/com_jedchecker/controllers/police.raw.php @@ -11,10 +11,11 @@ defined('_JEXEC') or die('Restricted access'); jimport('joomla.filesystem'); +jimport('joomla.filesystem.folder'); jimport('joomla.filesystem.archive'); -class jedcheckerControllerPolice extends JController +class jedcheckerControllerPolice extends JControllerlegacy { public function check() { diff --git a/source/administrator/components/com_jedchecker/controllers/uploads.php b/source/administrator/components/com_jedchecker/controllers/uploads.php index 31191cb..37de445 100644 --- a/source/administrator/components/com_jedchecker/controllers/uploads.php +++ b/source/administrator/components/com_jedchecker/controllers/uploads.php @@ -10,9 +10,10 @@ defined('_JEXEC') or die('Restricted access'); jimport('joomla.filesystem'); +jimport('joomla.filesystem.folder'); jimport('joomla.filesystem.archive'); -class jedcheckerControllerUploads extends JController +class jedcheckerControllerUploads extends JControllerlegacy { public function __construct() { diff --git a/source/administrator/components/com_jedchecker/jedchecker.php b/source/administrator/components/com_jedchecker/jedchecker.php index 2b51651..cd76b46 100644 --- a/source/administrator/components/com_jedchecker/jedchecker.php +++ b/source/administrator/components/com_jedchecker/jedchecker.php @@ -8,12 +8,13 @@ */ defined('_JEXEC') or die('Restricted access'); -jimport('joomla.application.component.controller'); +jimport('joomla.application.component.controllerlegacy'); -$view = JRequest::getCmd('view',''); -if($view == '' && JRequest::getCmd('task') == '') { - JRequest::setVar('view', 'uploads'); +$input = JFactory::getApplication()->input; +$view = $input->getCmd('view',''); +if($view == '' && $input->getCmd('task', '') == '') { + $input->set('view', 'uploads'); } -$controller = JController::getInstance('jedchecker'); -$controller->execute(JRequest::getCmd('task')); +$controller = JControllerLegacy::getInstance('jedchecker'); +$controller->execute($input->getCmd('task','')); $controller->redirect(); \ No newline at end of file diff --git a/source/administrator/components/com_jedchecker/views/uploads/tmpl/default.php b/source/administrator/components/com_jedchecker/views/uploads/tmpl/default.php index b5656fb..8991d15 100644 --- a/source/administrator/components/com_jedchecker/views/uploads/tmpl/default.php +++ b/source/administrator/components/com_jedchecker/views/uploads/tmpl/default.php @@ -9,99 +9,103 @@ defined('_JEXEC') or die('Restricted access'); -JHTML::_('behavior.mootools', true); +JHTML::_('behavior.framework', true); JHtml::_('behavior.formvalidation'); JHtml::_('behavior.keepalive'); JHtml::stylesheet('media/com_jedchecker/css/css.css'); JHtml::script('media/com_jedchecker/js/police.js'); ?> -
-
-
-

- -

-

- -

-

- -

-
    -
  1. 1.
  2. -
  3. 2.
  4. -
  5. 3.
  6. -
+
+ +
+

+ +

+ +

+ +

+ +

+ +

+
    +
  1. 1.
  2. +
  3. 2.
  4. +
  5. 3.
  6. +
- - - - -
- + + + + +
+ +
+
+
+

+ +

+ +
-
-
-

-

- -
-
-
-