diff --git a/lib/class/live_stream.class.php b/lib/class/live_stream.class.php index 9de1b958..5db6ac26 100644 --- a/lib/class/live_stream.class.php +++ b/lib/class/live_stream.class.php @@ -100,8 +100,8 @@ class Live_Stream extends database_object implements media, library_item public function format($details = true) { // Default link used on the rightbar - $this->f_name = scrub_out($this->name); - $this->link = AmpConfig::get('web_path') . '/radio.php?action=show&radio=' . scrub_out($this->id); + $this->f_name = scrub_out($this->name); + $this->link = AmpConfig::get('web_path') . '/radio.php?action=show&radio=' . scrub_out($this->id); $this->f_link = "link . "\">" . $this->f_name . ""; $this->f_name_link = "site_url . "\">" . $this->f_name . ""; $this->f_url_link = "url . "\">" . $this->url . ""; diff --git a/lib/class/song.class.php b/lib/class/song.class.php index a977fb19..c3581e4d 100644 --- a/lib/class/song.class.php +++ b/lib/class/song.class.php @@ -280,6 +280,10 @@ class Song extends database_object implements media, library_item * @var string $f_composer */ public $f_composer; + /** + * @var string $f_license + */ + public $f_license; /* Setting Variables */ /** @@ -1472,6 +1476,12 @@ class Song extends database_object implements media, library_item $this->f_publisher = $this->label; $this->f_composer = $this->composer; + + if (AmpConfig::get('licensing') && $this->license) { + $license = new License($this->license); + $license->format(); + $this->f_license = $license->f_link; + } } // format /** diff --git a/lib/class/stream_playlist.class.php b/lib/class/stream_playlist.class.php index 5b2bacb3..8d0ae6d3 100644 --- a/lib/class/stream_playlist.class.php +++ b/lib/class/stream_playlist.class.php @@ -195,7 +195,7 @@ class Stream_Playlist if (!empty($object->site_url)) { $url['title'] .= ' (' . $object->site_url . ')'; } - $url['codec'] = $object->codec; + $url['codec'] = $object->codec; $url['image_url'] = Art::url($object->id, 'live_stream', $api_session, (AmpConfig::get('ajax_load') ? 3 : 4)); break; case 'song_preview': diff --git a/modules/plugins/MOTDHome/MOTDHome.plugin.php b/modules/plugins/MOTDHome/MOTDHome.plugin.php deleted file mode 100644 index 0e2d1450..00000000 --- a/modules/plugins/MOTDHome/MOTDHome.plugin.php +++ /dev/null @@ -1,95 +0,0 @@ -. - * - */ - -class AmpacheMOTDHome -{ - public $name = 'Message of the Day'; - public $categories = 'home'; - public $description = 'Message of the Day on homepage'; - public $url = ''; - public $version = '000001'; - public $min_ampache = '370040'; - public $max_ampache = '999999'; - - /** - * Constructor - * This function does nothing... - */ - public function __construct() - { - return true; - } - - /** - * install - * This is a required plugin function. It inserts our preferences - * into Ampache - */ - public function install() - { - return true; - } - - /** - * uninstall - * This is a required plugin function. It removes our preferences from - * the database returning it to its original form - */ - public function uninstall() - { - return true; - } - - /** - * upgrade - * This is a recommended plugin function - */ - public function upgrade() - { - return true; - } - - /** - * display_home - * This display the module in home page - */ - public function display_home() - { - if (@is_readable(AmpConfig::get('prefix') . '/config/motd.php')) { - echo '