Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace instances of Object with SS_Object for PHP7 compatibility. #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions _config.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,7 @@

// If placeholder method exists, we're dealing with SS >= 3.2
define('SHOP_SEARCH_IS_SS32', method_exists('DB', 'placeholders'));

if (!class_exists('SS_Object')) {
class_alias('Object', 'SS_Object');
}
2 changes: 1 addition & 1 deletion code/ShopSearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @date 08.29.2013
* @package shop_search
*/
class ShopSearch extends Object
class ShopSearch extends SS_Object
{
const FACET_TYPE_LINK = 'link';
const FACET_TYPE_CHECKBOX = 'checkbox';
Expand Down
2 changes: 1 addition & 1 deletion code/adapters/ShopSearchMysql.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @package shop_search
* @subpackage adapters
*/
class ShopSearchMysql extends Object implements ShopSearchAdapter
class ShopSearchMysql extends SS_Object implements ShopSearchAdapter
{
/**
* @param string $keywords
Expand Down
2 changes: 1 addition & 1 deletion code/adapters/ShopSearchSimple.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* @date 09.03.2013
* @package shop_search
*/
class ShopSearchSimple extends Object implements ShopSearchAdapter
class ShopSearchSimple extends SS_Object implements ShopSearchAdapter
{
/**
* @param string $keywords
Expand Down
2 changes: 1 addition & 1 deletion code/helpers/FacetHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* @package shop_search
* @subpackage helpers
*/
class FacetHelper extends Object
class FacetHelper extends SS_Object
{
/** @var bool - if this is turned on it will use an algorithm that doesn't require traversing the data set if possible */
private static $faster_faceting = false;
Expand Down