Projekt

Allgemein

Profil

GX-Bug #51116 » ProductReviewsWriteFix.patch

Till Tepelmann, 11.04.2017 11:17

Unterschiede anzeigen:

src/product_reviews_write.php (revision )
33 33
	$t_customer_id = $_SESSION['customer_id'];
34 34
}
35 35

  
36
$coo_product_reviews_write_control = MainFactory::create_object('ProductReviewsWriteContentControl', array($product, $t_customer_id));
36
$coo_product_reviews_write_control = MainFactory::create_object('ProductReviewsWriteContentControl');
37 37
$coo_product_reviews_write_control->set_data('GET', $_GET);
38 38
$coo_product_reviews_write_control->set_data('POST', $_POST);
39
$coo_product_reviews_write_control->set_('product', $product);
40
$coo_product_reviews_write_control->set_('customerId', $t_customer_id);
39 41

  
40 42
global $gmSEOBoost;
41 43
$coo_product_reviews_write_control->set_('gmSEOBoost', $gmSEOBoost);
src/system/classes/reviews/ProductReviewsWriteContentControl.inc.php (revision )
26 26
	protected $product;
27 27
	protected $customerId;
28 28
	
29
	
30
	public function __construct($product, $customerId)
31
	{
32
		$this->product = $product;
33
		$this->customerId = $customerId;
34
	}
35

  
36 29
	public function proceed()
37 30
	{
38 31
		$languagesId = $_SESSION['languages_id'];
    (1-1/1)