git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@14929 b9a71923-0436-4b27-9f14-aed3839534dd
25 lines
577 B
PHP
25 lines
577 B
PHP
<?php
|
|
/*
|
|
* @author PrestaShop SA <contact@prestashop.com>
|
|
* @copyright 2007-2012 PrestaShop SA
|
|
* @version Release: $Revision: 1.4 $
|
|
*
|
|
* International Registered Trademark & Property of PrestaShop SA
|
|
*/
|
|
|
|
/**
|
|
* Backward function compatibility
|
|
* Need to be called for each module in 1.4
|
|
*/
|
|
|
|
// Get out if the context is already defined
|
|
if (!in_array('Context', get_declared_classes()))
|
|
require_once(dirname(__FILE__).'/Context.php');
|
|
|
|
if (!isset($this) || isset($this->context))
|
|
return;
|
|
|
|
$this->context = Context::getContext();
|
|
$this->smarty = $this->context->smarty;
|
|
|