Move webui code under subdir

This commit is contained in:
2011-12-31 18:36:21 +00:00
parent 5da3a614d3
commit b9f535777b
11 changed files with 2 additions and 2 deletions

View 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);
?>