Changeset 370998
- Timestamp:
- 04/09/2011 07:50:28 PM (15 years ago)
- Location:
- google-analyticator/trunk
- Files:
-
- 2 edited
-
google-analytics-summary-widget.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
google-analyticator/trunk/google-analytics-summary-widget.php
r246245 r370998 102 102 103 103 # Attempt to login and get the current account 104 $ this->id= $this->getAnalyticsAccount();104 $account = $this->getAnalyticsAccount(); 105 105 $profile_id = get_option('ga_profileid'); 106 if ( trim($profile_id) != '' ) 107 $this->id = 'ga:' . $profile_id; 106 if ( trim($profile_id) != '' ) { 107 if ( substr($profile_id, 0, 3) == 'ga:' ) { 108 $this->id = $profile_id; 109 } else { 110 $this->id = 'ga:' . $profile_id; 111 } 112 } else { 113 $this->id = $account; 114 } 115 print_r($this->id); 108 116 $this->api->setAccount($this->id); 109 117 110 118 # Check that we can display the widget before continuing 111 if ( $ this->id == false ) {119 if ( $account == false || $this->id == false ) { 112 120 # Output error message 113 121 echo '<p style="margin: 0;">' . __('No Analytics account selected. Double check you are authenticated with Google on Google Analyticator\'s settings page and make sure an account is selected.', 'google-analyticator') . '</p>'; -
google-analyticator/trunk/readme.txt
r370994 r370998 51 51 52 52 = 6.1.3 = 53 * Fixes a Javascript error on the WordPress login page 53 * Fixes a Javascript error on the WordPress login page. 54 * Improves profile id logic to hopefully fix dashboard errors for the people that experience them. 54 55 55 56 = 6.1.2 =
Note: See TracChangeset
for help on using the changeset viewer.