Skip to content

Commit

Permalink
tjstrapper loaded in backend and also version changed to 1.2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
sagarch committed Mar 3, 2015
1 parent 7c62cfe commit f5d8f23
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
15 changes: 11 additions & 4 deletions administrator/tjfields.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

if (!defined('DS'))
{
define('DS',DIRECTORY_SEPARATOR);
define('DS', DIRECTORY_SEPARATOR);
}

// Access check.
Expand Down Expand Up @@ -47,15 +47,22 @@
JHtml::_('formbehavior.chosen', 'select');
}

// Load techjoomla strapper
if (file_exists(JPATH_ROOT . '/media/techjoomla_strapper/tjstrapper.php'))
{
require_once JPATH_ROOT . '/media/techjoomla_strapper/tjstrapper.php';
TjStrapper::loadTjAssets('com_tjfields');
}

$document = JFactory::getDocument();
$document->addStyleSheet(JUri::base().'components/com_tjfields/assets/css/tjfields.css');
$document->addStyleSheet(JUri::base() . 'components/com_tjfields/assets/css/tjfields.css');

// Include helper file
$helperPath= dirname(__FILE__).DS.'helpers'.DS.'tjfields.php';
$helperPath = dirname(__FILE__) . '/helpers/tjfields.php';

if (!class_exists('TjfieldsHelper'))
{
JLoader::register('TjfieldsHelper',$helperPath);
JLoader::register('TjfieldsHelper', $helperPath);
JLoader::load('TjfieldsHelper');
}

Expand Down
4 changes: 2 additions & 2 deletions tjfields.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
<authorUrl>www.techjoomla.com</authorUrl>
<copyright>Copyright(C)2012-13 TechJoomla</copyright>
<license>http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL</license>
<creationDate>25th Dec 2014</creationDate>
<version>1.2.3</version>
<creationDate>3 Mar 2015</creationDate>
<version>1.2.4</version>
<description>TJFields - Common code for TJ Fields Manager and TJ Geo Manager!</description>
<install>
<sql>
Expand Down

0 comments on commit f5d8f23

Please sign in to comment.