}
$template['tabindex'] = 10;
- $template['skinid'] = $skin->getID();
+ $template['skinid'] = intRequestVar('skinid');
$template['skinname'] = $skin->getName();
$this->parser->parse(showlist($normal_skintype, 'list_normalskinlist', $template, $template_name));
{
include_libs('skinie.php');
}
-
+
if ( !preg_match('#^admin#', $this->skintype) && $this->skintype != 'importAdmin' )
{
$skindir = $DIR_SKINS;
$candidates = SkinImport::searchForCandidates($skindir);
foreach ( $candidates as $skinname => $skinfile )
{
- $skinfile = Entity::hsc($skinfile);
$skinname = Entity::hsc($skinname);
+ if ( !preg_match('#^admin#', $this->skintype) && $this->skintype != 'importAdmin' )
+ {
+ $skinfile = Entity::hsc($skinfile);
+ }
+ else
+ {
+ $skinfile = Entity::hsc("admin/$skinfile");
+ }
echo "<option value=\"{$skinfile}\">{$skinname}</option>\n";
}