// MERGE with trunk revision 7754
This commit is contained in:
@@ -28,11 +28,6 @@
|
||||
include(dirname(__FILE__).'/../../config/config.inc.php');
|
||||
require_once(dirname(__FILE__).'/sendtoafriend.php');
|
||||
|
||||
$sendtoafriend = new sendToAFriend();
|
||||
if (!$sendtoafriend->active)
|
||||
Tools::display404Error();
|
||||
|
||||
include(dirname(__FILE__).'/../../header.php');
|
||||
echo $sendtoafriend->displayFrontForm();
|
||||
include(dirname(__FILE__).'/../../footer.php');
|
||||
$sendtoafriend = new sendToAFriend($dontTranslate = true);
|
||||
echo $sendtoafriend->displayPageForm();
|
||||
|
||||
|
||||
@@ -56,6 +56,16 @@ class sendToAFriend extends Module
|
||||
return $this->display(__FILE__, 'product_page.tpl');
|
||||
}
|
||||
|
||||
public function displayPageForm()
|
||||
{
|
||||
if (!$this->active)
|
||||
Tools::display404Error();
|
||||
|
||||
include(dirname(__FILE__).'/../../header.php');
|
||||
echo $this->displayFrontForm();
|
||||
include(dirname(__FILE__).'/../../footer.php');
|
||||
}
|
||||
|
||||
public function displayFrontForm()
|
||||
{
|
||||
global $smarty;
|
||||
|
||||
Reference in New Issue
Block a user