This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/app/functions/fn.control.php b/app/functions/fn.control.php | |
index 9510cae..4e47ca4 100644 | |
--- a/app/functions/fn.control.php | |
+++ b/app/functions/fn.control.php | |
@@ -38,19 +38,26 @@ define('GET_POST_CONTROLLERS', 3); | |
function fn_set_hook($hook_name = NULL, &$arg1 = NULL, &$arg2 = NULL, &$arg3 = NULL, &$arg4 = NULL, &$arg5 = NULL, &$arg6 = NULL, &$arg7 = NULL, &$arg8 = NULL, &$arg9 = NULL, &$arg10 = NULL, &$arg11 = NULL, &$arg12 = NULL, &$arg13 = NULL, &$arg14 = NULL, &$arg15 = NULL) | |
{ | |
static $callable_functions; | |
- static $hooks_already_sorted; | |
- static $edition_acronym; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/app/functions/fn.catalog.php b/app/functions/fn.catalog.php | |
index cd7b966..9a85478 100644 | |
--- a/app/functions/fn.catalog.php | |
+++ b/app/functions/fn.catalog.php | |
@@ -5894,7 +5894,12 @@ function fn_get_products($params, $items_per_page = 0, $lang_code = CART_LANGUAG | |
$params = array_merge($default_params, $params); | |
- if ((empty($params['pname']) || $params['pname'] != 'Y') && (empty($params['pshort']) || $params['pshort'] != 'Y') && (empty($params['pfull']) || $params['pfull'] != 'Y') && (empty($params['pkeywords']) || $params['pkeywords'] != 'Y') && !empty($params['q'])) { | |
+ if ((empty($params['pname']) || $params['pname'] != 'Y') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/app/functions/fn.images.php b/app/functions/fn.images.php | |
index 02892d2..44072fa 100644 | |
--- a/app/functions/fn.images.php | |
+++ b/app/functions/fn.images.php | |
@@ -649,6 +649,8 @@ function fn_resize_image($src, $new_width = 0, $new_height = 0, $bg_color = '#ff | |
$thumbnail = $canvas; | |
} | |
+ unset($image); | |
+ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/init.php b/init.php | |
index 2772327..0472c9f 100644 | |
--- a/init.php | |
+++ b/init.php | |
@@ -21,7 +21,7 @@ use Tygh\Registry; | |
$this_dir = dirname(__FILE__); | |
$classLoader = require($this_dir . '/app/lib/vendor/autoload.php'); | |
$classLoader->add('Tygh', $this_dir . '/app'); | |
-class_alias('\Tygh\Tygh', 'Tygh', true); | |
+class_alias('\Tygh\Tygh', 'Tygh'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/app/addons/watermarks/func.php b/app/addons/watermarks/func.php | |
index 1793ce5..b11b633 100644 | |
--- a/app/addons/watermarks/func.php | |
+++ b/app/addons/watermarks/func.php | |
@@ -445,7 +445,7 @@ function fn_watermark_create( | |
try { | |
$image = $imagine->open($original_abs_path); | |
- $image->usePalette(new \Imagine\Image\Palette\RGB()); | |
+// $image->usePalette(new \Imagine\Image\Palette\RGB()); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/app/functions/fn.cart.php b/app/functions/fn.cart.php | |
index 1e96c84..efa7eed 100644 | |
--- a/app/functions/fn.cart.php | |
+++ b/app/functions/fn.cart.php | |
@@ -809,11 +810,19 @@ function fn_update_order(&$cart, $order_id = 0) | |
$order['promotion_ids'] = fn_create_set(array_keys($cart['promotions'])); | |
} | |
- $old_order = db_get_row("SELECT company_id, payment_id, status FROM ?:orders WHERE order_id = ?i", $order_id); | |
+ $old_order = db_get_row( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/app/controllers/frontend/products.php b/app/controllers/frontend/products.php | |
index faa4dae..44a038e 100644 | |
--- a/app/controllers/frontend/products.php | |
+++ b/app/controllers/frontend/products.php | |
@@ -182,6 +182,9 @@ if ($mode == 'search') { | |
// Set recently viewed products history | |
fn_add_product_to_recently_viewed($_REQUEST['product_id']); | |
+ // Increase product popularity | |
+ fn_set_product_popularity($_REQUEST['product_id']); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/app/functions/fn.common.php b/app/functions/fn.common.php | |
index 4bf36ce..7ccd1fb 100644 | |
--- a/app/functions/fn.common.php | |
+++ b/app/functions/fn.common.php | |
@@ -5877,7 +5877,7 @@ function fn_live_editor_prepare_callback_args($schema, $vars) | |
* @param $operator | |
* @param $right_operand | |
* | |
- * @return bool Comparison result | |
+ * @return bool|null Boolean comparison result or null if unknown operator given |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/admin.php b/admin.php | |
index 2d7210c..864e97f 100644 | |
--- a/admin.php | |
+++ b/admin.php | |
@@ -20,6 +20,7 @@ if (version_compare($php_value, '5.3.0') == -1) { | |
define('AREA', 'A'); | |
define('ACCOUNT_TYPE', 'admin'); | |
+define('ENTRY_SCRIPT', __FILE__); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/app/Tygh/SmartyEngine/Core.php b/app/Tygh/SmartyEngine/Core.php | |
index b3eee69..34ac367 100644 | |
--- a/app/Tygh/SmartyEngine/Core.php | |
+++ b/app/Tygh/SmartyEngine/Core.php | |
@@ -26,8 +26,6 @@ class Core extends \Smarty | |
public $default_resource_type = 'tygh'; | |
public $merge_compiled_includes = false; | |
public $escape_html = true; | |
- public $_dir_perms = 0777; | |
- public $_file_perms = 0666; |
OlderNewer