Version 4.5.0
This commit is contained in:
1 parent
1a0c7fd3c2
commit
f79dcf067a
3791 files changed
+248032
-76372
No files matched your search
@@ -11,7 +11,7 @@
|
||||
namespace IPS\core\Facebook;
|
||||
|
||||
/* To prevent PHP errors (extending class does not exist) revealing path */
|
||||
if ( !defined( '\IPS\SUITE_UNIQUE_KEY' ) )
|
||||
if ( !\defined( '\IPS\SUITE_UNIQUE_KEY' ) )
|
||||
{
|
||||
header( ( isset( $_SERVER['SERVER_PROTOCOL'] ) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0' ) . ' 403 Forbidden' );
|
||||
exit;
|
||||
@@ -60,7 +60,7 @@ class _Pixel extends \IPS\Patterns\Singleton
|
||||
{
|
||||
$inlineParams = '';
|
||||
|
||||
if ( is_array( $params ) and count( $params ) )
|
||||
if ( \is_array( $params ) and \count( $params ) )
|
||||
{
|
||||
$inlineParams = json_encode( $params );
|
||||
}
|
||||
@@ -75,7 +75,7 @@ class _Pixel extends \IPS\Patterns\Singleton
|
||||
}
|
||||
}
|
||||
|
||||
return count( $return ) ? implode( "\n", $return ) : null;
|
||||
return \count( $return ) ? implode( "\n", $return ) : null;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -101,7 +101,7 @@ class _Pixel extends \IPS\Patterns\Singleton
|
||||
{
|
||||
$url = 'https://www.facebook.com/tr?id=' . \IPS\Settings::i()->fb_pixel_id . '&ev=' . $name;
|
||||
|
||||
if ( is_array( $params ) and count( $params ) )
|
||||
if ( \is_array( $params ) and \count( $params ) )
|
||||
{
|
||||
$url .= '&' . http_build_query( array( 'cd' => $params ), '', '&' );
|
||||
}
|
||||
@@ -110,6 +110,6 @@ class _Pixel extends \IPS\Patterns\Singleton
|
||||
|
||||
}
|
||||
|
||||
return count( $return ) ? implode( "\n", $return ) : null;
|
||||
return \count( $return ) ? implode( "\n", $return ) : null;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user