CC-84: Smart Playlists
- changed name of 'block' to 'smart playlist' on UI only
This commit is contained in:
parent
3df0f2d26e
commit
a828c46d32
4 changed files with 13 additions and 9 deletions
|
@ -57,7 +57,11 @@ class LibraryController extends Zend_Controller_Action
|
|||
$obj = new Application_Model_Block($this->obj_sess->id);
|
||||
}
|
||||
if ($isAdminOrPM || $obj->getCreatorId() == $user->getId()) {
|
||||
$menu["pl_add"] = array("name"=> "Add to ".ucfirst($this->obj_sess->type), "icon" => "add-playlist", "icon" => "copy");
|
||||
if ($this->obj_sess->type === "playlist") {
|
||||
$menu["pl_add"] = array("name"=> "Add to Playlist", "icon" => "add-playlist", "icon" => "copy");
|
||||
} else {
|
||||
$menu["pl_add"] = array("name"=> "Add to Smart Playlist", "icon" => "add-playlist", "icon" => "copy");
|
||||
}
|
||||
}
|
||||
}
|
||||
if ($isAdminOrPM) {
|
||||
|
@ -73,7 +77,11 @@ class LibraryController extends Zend_Controller_Action
|
|||
} else {
|
||||
$obj = new Application_Model_Block($id);
|
||||
if ($isAdminOrPM || $obj->getCreatorId() == $user->getId()) {
|
||||
$menu["pl_add"] = array("name"=> "Add to ".ucfirst($this->obj_sess->type), "icon" => "add-playlist", "icon" => "copy");
|
||||
if ($this->obj_sess->type === "playlist") {
|
||||
$menu["pl_add"] = array("name"=> "Add to Playlist", "icon" => "add-playlist", "icon" => "copy");
|
||||
} else {
|
||||
$menu["pl_add"] = array("name"=> "Add to Smart Playlist", "icon" => "add-playlist", "icon" => "copy");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -219,7 +219,7 @@ class PlaylistController extends Zend_Controller_Action
|
|||
|
||||
$name = 'Untitled Playlist';
|
||||
if ($type == 'block') {
|
||||
$name = 'Untitled Smart Block';
|
||||
$name = 'Untitled Smart Playlist';
|
||||
}
|
||||
|
||||
$obj = new $objInfo['className']();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue