Revision 1529
Added by Dietmar almost 13 years ago
browse.php | ||
---|---|---|
3 | 3 |
* |
4 | 4 |
* @category admin |
5 | 5 |
* @package media |
6 |
* @author WebsiteBaker Project |
|
7 |
* @copyright 2004-2009, Ryan Djurovich |
|
6 |
* @author Ryan Djurovich, WebsiteBaker Project |
|
8 | 7 |
* @copyright 2009-2011, Website Baker Org. e.V. |
9 | 8 |
* @link http://www.websitebaker2.org/ |
10 | 9 |
* @license http://www.gnu.org/licenses/gpl.html |
... | ... | |
82 | 81 |
return round($size/pow(1024, ($i = floor(log($size, 1024)))), 1) . $filesizename[$i]; |
83 | 82 |
} |
84 | 83 |
|
85 |
// Setup template object |
|
86 |
$template = new Template(THEME_PATH.'/templates'); |
|
84 |
// Setup template object, parse vars to it, then parse it |
|
85 |
$ThemePath = realpath(WB_PATH.$admin->correct_theme_source('media_browse.htt')); |
|
86 |
// Create new template object |
|
87 |
$template = new Template($ThemePath); |
|
87 | 88 |
$template->set_file('page', 'media_browse.htt'); |
88 | 89 |
$template->set_block('page', 'main_block', 'main'); |
89 | 90 |
|
Also available in: Unified diff
add new backend theme handling (Tks to Stefek)