Skip to content
Snippets Groups Projects
Commit 7560bd66 authored by Prasath Nadarajah's avatar Prasath Nadarajah
Browse files

Changing code to load environment dynamically

parent 16d5e078
Branches
No related tags found
No related merge requests found
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
require_once( dirname( __FILE__ ) . '/includes/class-wp-client-factory.php' ); require_once( dirname( __FILE__ ) . '/includes/class-wp-client-factory.php' );
class Push_Syndication_Server { class WP_Push_Syndication_Server {
private $push_syndicate_settings; private $push_syndicate_settings;
private $push_syndicate_tranports; private $push_syndicate_tranports;
......
...@@ -12,7 +12,14 @@ License: GPLv2 or later ...@@ -12,7 +12,14 @@ License: GPLv2 or later
**************************************************************************/ **************************************************************************/
require_once ( dirname( __FILE__ ) . '/includes/class-wpcom-push-syndication-server.php' );
require_once ( dirname( __FILE__ ) . '/includes/class-wp-push-syndication-server.php' );
$Push_Syndication_Server = new Push_Syndication_Server();
if ( !defined( 'PUSH_SYNDICATION_ENVIRONMENT' ) )
define( 'PUSH_SYNDICATION_ENVIRONMENT', 'WP' );
$push_syndication_server_class = PUSH_SYNDICATION_ENVIRONMENT . 'Push_Syndication_Server';
$push_syndication_server = new $push_syndication_server_class();
?> ?>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment