Move webui code under subdir
This commit is contained in:
18
source/webui/pages/home.php
Normal file
18
source/webui/pages/home.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
$main = MediaListing_Main::instance();
|
||||
$config = $main->config();
|
||||
$smarty = $main->smarty();
|
||||
|
||||
$source_paths = $config->get('sources');
|
||||
$sources = array();
|
||||
|
||||
foreach ($source_paths as $source_path) {
|
||||
list($name, $path) = explode(':', $source_path);
|
||||
|
||||
$sources[] = new MediaListing_Source($name, $path, false);
|
||||
}
|
||||
|
||||
$smarty->assign('sources', $sources);
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user