ratings detail title

This commit is contained in:
Michael 2014-02-28 11:10:04 +01:00
parent 2c40201e58
commit fa61d0e4ed

View file

@ -3,7 +3,7 @@
* COPS (Calibre OPDS PHP Server) class file * COPS (Calibre OPDS PHP Server) class file
* *
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html) * @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
* @author Sébastien Lucas <sebastien@slucas.fr> * @author S<EFBFBD>bastien Lucas <sebastien@slucas.fr>
*/ */
define ("VERSION", "0.9.1beta"); define ("VERSION", "0.9.1beta");
@ -478,7 +478,7 @@ class Page
$this->query = $pquery; $this->query = $pquery;
$this->n = $pn; $this->n = $pn;
$this->favicon = $config['cops_icon']; $this->favicon = $config['cops_icon'];
$this->authorName = empty($config['cops_author_name']) ? utf8_encode('Sébastien Lucas') : $config['cops_author_name']; $this->authorName = empty($config['cops_author_name']) ? utf8_encode('S<EFBFBD>bastien Lucas') : $config['cops_author_name'];
$this->authorUri = empty($config['cops_author_uri']) ? 'http://blog.slucas.fr' : $config['cops_author_uri']; $this->authorUri = empty($config['cops_author_uri']) ? 'http://blog.slucas.fr' : $config['cops_author_uri'];
$this->authorEmail = empty($config['cops_author_email']) ? 'sebastien@slucas.fr' : $config['cops_author_email']; $this->authorEmail = empty($config['cops_author_email']) ? 'sebastien@slucas.fr' : $config['cops_author_email'];
} }
@ -731,7 +731,7 @@ class PageRatingDetail extends Page
{ {
$rating = Rating::getRatingById ($this->idGet); $rating = Rating::getRatingById ($this->idGet);
$this->idPage = $rating->getEntryId (); $this->idPage = $rating->getEntryId ();
$this->title = $rating->name; $this->title =str_format (localize ("ratingword", $rating->name/2), $rating->name/2);
list ($this->entryArray, $this->totalNumber) = Book::getBooksByRating ($this->idGet, $this->n); list ($this->entryArray, $this->totalNumber) = Book::getBooksByRating ($this->idGet, $this->n);
} }
} }