Skip to content

Commit

Permalink
Merge pull request #132 from blizzrdof77/master
Browse files Browse the repository at this point in the history
Fixed PHP Deprecation Error
  • Loading branch information
citelao authored Dec 22, 2019
2 parents f353e4c + a09fb93 commit 941631e
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 8 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog #

## v0.13.9 ##
- Fixed: Deprecation error thrown in newer versions of PHP for unparenthesized
left-associative ternary operator in `Spotifious.php`
- Changed: Updated `spotifious.sublime-project` configuration to use relative
path of the workflow directory

## v0.13.8 ##
- Fixed: Support new Spotify playlist syntax (without `user:` prefix).

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Spotifious uses Packal to make sure you always have the latest version. It gives

## Download & Install ##

Latest version: [v0.13.8](https://github.com/citelao/Spotify-for-Alfred/archive/master.zip) | Latest dev build: [v0.13.8](https://github.com/citelao/Spotify-for-Alfred/archive/dev.zip)
Latest version: [v0.13.9](https://github.com/citelao/Spotify-for-Alfred/archive/master.zip) | Latest dev build: [v0.13.9](https://github.com/citelao/Spotify-for-Alfred/archive/dev.zip)

An in-depth [installation guide](http://ben.stolovitz.com/Spotify-for-Alfred/download/) is available on the Spotifious website.

Expand Down
2 changes: 1 addition & 1 deletion info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -1086,7 +1086,7 @@ Spotifious works out of the box (just type `spotifious` in Alfred), but works be
</dict>
</dict>
<key>version</key>
<string>0.13.8</string>
<string>0.13.9</string>
<key>webaddress</key>
<string>https://github.com/citelao/Spotify-for-Alfred</string>
</dict>
Expand Down
2 changes: 1 addition & 1 deletion spotifious.sublime-project
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"folders":
[
{
"path": "/Users/citelao/Dropbox/Alfred/Alfred.alfredpreferences/workflows/spotifious"
"path": "."
}
]
}
10 changes: 5 additions & 5 deletions src/citelao/Spotifious/Spotifious.php
Original file line number Diff line number Diff line change
Expand Up @@ -400,11 +400,11 @@ protected function update_playlists_cache($api) {
'id' => $playlist->id,
'name' => $playlist->name,
'uri' => $playlist->uri,
'owner' => (property_exists($playlist->owner, 'display_name'))
? $playlist->owner->display_name
: (property_exists($playlist->owner, 'id'))
? $playlist->owner->id
: 'unknown'
'owner' => (
property_exists($playlist->owner, 'display_name')
? $playlist->owner->display_name
: property_exists($playlist->owner, 'id')
) ? $playlist->owner->id : 'unknown'
);
}
$datetime = new \DateTime("now");
Expand Down

0 comments on commit 941631e

Please sign in to comment.