Fixed theme not being loaded in Admin:EditSidebar
authorDan Fuhry <dan@enanocms.org>
Sat, 31 Jul 2010 11:46:53 -0400
changeset 1282 49e90e1d9756
parent 1281 36c389769d88
child 1283 cdbc7f48ab72
Fixed theme not being loaded in Admin:EditSidebar
plugins/SpecialAdmin.php
--- a/plugins/SpecialAdmin.php	Fri Jul 30 21:57:37 2010 -0400
+++ b/plugins/SpecialAdmin.php	Sat Jul 31 11:46:53 2010 -0400
@@ -2620,6 +2620,9 @@
 		?>
 		<div class="sbedit-metainfo">
 			<?php
+			if ( !$template->theme )
+				$template->load_theme('admin', 'default');
+			
 			$toolbarvars = $template->extract_vars('toolbar.tpl');
 			$parser_start = $template->makeParserText($toolbarvars['toolbar_vert_start']);
 			echo $parser_start->run();