Changeset 3175332
- Timestamp:
- 10/24/2024 09:02:18 PM (17 months ago)
- Location:
- calj/trunk
- Files:
-
- 2 edited
-
CalJPlugin.php (modified) (2 diffs)
-
calj.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
calj/trunk/CalJPlugin.php
r3175296 r3175332 137 137 $key = self::getoptopt('api_key', ''); 138 138 if (!$key) { 139 return [];139 throw new \Exception('Missing API key.', 4); 140 140 } 141 141 … … 145 145 $response = json_decode($response, true); 146 146 if ( (! $response) || (! isset($response['data'])) || (! $response['data']) ) { 147 return null;147 throw new \Exception('API call returned no data.', 5); 148 148 } 149 149 150 150 $response = json_decode( self::xorString($response['data']), true ); 151 151 if ( ! $response ) { 152 return null;152 throw new \Exception('Failed to decrypt the response.', 6); 153 153 } 154 154 -
calj/trunk/calj.php
r3175296 r3175332 6 6 * Plugin URI: https://calj.net 7 7 * Description: Add the Shabbat times on your site. 8 * Version: 1.4. 28 * Version: 1.4.3 9 9 * Author: Gabriel Zerbib <gabriel@calj.net> 10 10 * Author URI: https://calj.net
Note: See TracChangeset
for help on using the changeset viewer.