CC-4954: Please make Library page remember the status per user

-done
This commit is contained in:
denise 2013-02-19 10:58:48 -05:00
parent 9715a9ad6d
commit d1301ff676
5 changed files with 72 additions and 4 deletions

View file

@ -77,6 +77,17 @@ class LibraryController extends Zend_Controller_Action
}
}
//get user settings and determine if we need to hide
// or show the playlist editor
$showPlaylist = false;
$data = Application_Model_Preference::getLibraryScreenSettings();
if (!is_null($data)) {
if ($data["playlist"] == "true") {
$showLib = true;
}
}
$this->view->showPlaylist = $showPlaylist;
$formatter = new LengthFormatter($obj->getLength());
$this->view->length = $formatter->format();
$this->view->type = $obj_sess->type;