Skip to content

Commit

Permalink
Task techjoomla#53 feat: Create a bootstrap file
Browse files Browse the repository at this point in the history
  • Loading branch information
Amol Thite committed Nov 6, 2019
1 parent 3efe935 commit 948ade7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
9 changes: 1 addition & 8 deletions src/com_tjvendors/site/includes/tjvendors.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
*/

// No direct access
defined('_JEXEC') or die;

use Joomla\CMS\Factory;
Expand All @@ -25,7 +24,7 @@
*
* @since __DEPLOY_VERSION__
*/
class TJV
class TJVendors
{
/**
* Holds the record of the loaded TJVendors classes
Expand Down Expand Up @@ -168,12 +167,6 @@ public static function init($location = 'site')
return;
}

if (file_exists(JPATH_ROOT . '/media/techjoomla_strapper/tjstrapper.php'))
{
require_once JPATH_ROOT . '/media/techjoomla_strapper/tjstrapper.php';
TjStrapper::loadTjAssets('com_tjvendors');
}

$version = $versionClass->getMediaVersion();
$options = array("version" => $version);

Expand Down
2 changes: 1 addition & 1 deletion src/com_tjvendors/site/tjvendors.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
JLoader::load('TjvendorFrontHelper');
}

TJV::init();
TJVendors::init();

// Execute the task.
$controller = BaseController::getInstance('Tjvendors');
Expand Down

0 comments on commit 948ade7

Please sign in to comment.