mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-03 01:39:28 +02:00
Use UI::find_template everytime there's a '/templates/…'
Note: This concerns everything but the install files
This commit is contained in:
parent
35477d0a5e
commit
a1f6a073cb
136 changed files with 365 additions and 672 deletions
|
@ -38,7 +38,7 @@ switch ($_REQUEST['action']) {
|
|||
// Get the current localplay fields
|
||||
$localplay = new Localplay(AmpConfig::get('localplay_controller'));
|
||||
$fields = $localplay->get_instance_fields();
|
||||
require_once AmpConfig::get('prefix') . '/templates/show_localplay_add_instance.inc.php';
|
||||
require_once AmpConfig::get('prefix') . UI::find_template('show_localplay_add_instance.inc.php');
|
||||
break;
|
||||
case 'add_instance':
|
||||
// This requires 50 or better!
|
||||
|
@ -62,7 +62,7 @@ switch ($_REQUEST['action']) {
|
|||
$localplay = new Localplay(AmpConfig::get('localplay_controller'));
|
||||
$instance = $localplay->get_instance($_REQUEST['instance']);
|
||||
$fields = $localplay->get_instance_fields();
|
||||
require_once AmpConfig::get('prefix') . '/templates/show_localplay_edit_instance.inc.php';
|
||||
require_once AmpConfig::get('prefix') . UI::find_template('show_localplay_edit_instance.inc.php');
|
||||
break;
|
||||
case 'show_instances':
|
||||
// First build the localplay object and then get the instances
|
||||
|
@ -70,7 +70,7 @@ switch ($_REQUEST['action']) {
|
|||
$localplay = new Localplay(AmpConfig::get('localplay_controller'));
|
||||
$instances = $localplay->get_instances();
|
||||
$fields = $localplay->get_instance_fields();
|
||||
require_once AmpConfig::get('prefix') . '/templates/show_localplay_instances.inc.php';
|
||||
require_once AmpConfig::get('prefix') . UI::find_template('show_localplay_instances.inc.php');
|
||||
break;
|
||||
case 'show_playlist':
|
||||
default:
|
||||
|
@ -81,7 +81,7 @@ switch ($_REQUEST['action']) {
|
|||
|
||||
// Pull the current playlist and require the template
|
||||
$objects = $localplay->get();
|
||||
require_once AmpConfig::get('prefix') . '/templates/show_localplay_status.inc.php';
|
||||
require_once AmpConfig::get('prefix') . UI::find_template('show_localplay_status.inc.php');
|
||||
break;
|
||||
} // end switch action
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue