WordPress.org

Plugin Directory

Changeset 1084134


Ignore:
Timestamp:
02/06/15 22:00:57 (2 years ago)
Author:
0is1
Message:

Fix array declarations

Location:
twitter-account-box
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • twitter-account-box/tags/0.2.12/includes/class-tab-get-twitter-data.php

    r1084126 r1084134  
    9797        'twitter_number_of_tweets' => $data['twitter_number_of_tweets'] 
    9898        ); 
    99         self::$error = [ 
     99        self::$error = array( 
    100100          'error_message' => '', 
    101101          'error' => false 
    102           ]; 
     102          ); 
    103103    } 
    104104 
     
    126126        if ($e->getMessage() === "Make sure you are passing in the correct parameters" ) { 
    127127 
    128           self::$error = [ 
     128          self::$error = array( 
    129129            'error_message' => 'Make sure you are passing in the correct parameters in Twitter Account Box settings-page', 
    130130            'error' => true 
    131           ]; 
     131          ); 
    132132        } else{ 
    133           self::$error = [ 
     133          self::$error = array( 
    134134            'error_message' => 'Something went wrong, please try again later...', 
    135135            'error' => true 
    136           ]; 
     136          ); 
    137137        } 
    138138        error_log(date('j.n.Y H:i:s'). " : ", 3, TAB__PLUGIN_DIR .'/logs/twitteraccountbox-errors.log'); 
  • twitter-account-box/trunk/includes/class-tab-get-twitter-data.php

    r1084126 r1084134  
    9797        'twitter_number_of_tweets' => $data['twitter_number_of_tweets'] 
    9898        ); 
    99         self::$error = [ 
     99        self::$error = array( 
    100100          'error_message' => '', 
    101101          'error' => false 
    102           ]; 
     102          ); 
    103103    } 
    104104 
     
    126126        if ($e->getMessage() === "Make sure you are passing in the correct parameters" ) { 
    127127 
    128           self::$error = [ 
     128          self::$error = array( 
    129129            'error_message' => 'Make sure you are passing in the correct parameters in Twitter Account Box settings-page', 
    130130            'error' => true 
    131           ]; 
     131          ); 
    132132        } else{ 
    133           self::$error = [ 
     133          self::$error = array( 
    134134            'error_message' => 'Something went wrong, please try again later...', 
    135135            'error' => true 
    136           ]; 
     136          ); 
    137137        } 
    138138        error_log(date('j.n.Y H:i:s'). " : ", 3, TAB__PLUGIN_DIR .'/logs/twitteraccountbox-errors.log'); 
Note: See TracChangeset for help on using the changeset viewer.