Skip to content

Commit

Permalink
Fix php 5.4 static notice
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrajesh committed Jul 1, 2015
1 parent 2c0aa4e commit ed8e493
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/cron.php
Expand Up @@ -19,7 +19,7 @@ private function __construct(){

}

function get_instance(){
public static function get_instance(){

if( ! isset( self::$instance ) )
self::$instance = new self();
Expand Down
6 changes: 4 additions & 2 deletions includes/bp-chat-ajax.php
Expand Up @@ -2,7 +2,9 @@
//ajax binding
class BPChatAjaxHelper{
private static $instance;
function __construct(){


private function __construct(){

//send updated online users list
add_action('wp_ajax_bpchat_update_online_users_list', array($this,'show_online_users_list'));
Expand All @@ -29,7 +31,7 @@ function __construct(){
}


function get_instance(){
public static function get_instance(){
if(!isset(self::$instance))
self::$instance=new self();
return self::$instance;
Expand Down

0 comments on commit ed8e493

Please sign in to comment.