This commit is contained in:
wclouser%mozilla.com 2006-07-31 02:45:15 +00:00
Родитель 5198909e2e
Коммит 53fef9d3bc
1 изменённых файлов: 9 добавлений и 0 удалений

Просмотреть файл

@ -126,6 +126,15 @@ class AddOn extends AMO_Object {
$this->setVar('PreviewWidth',$size[0]);
$this->setVar('PreviewHeight',$size[1]);
}
// Since our URI is used everywhere after this point as a URL, encode it,
// but just the filename - we still need slashes to show up in the
// templates
$filepath = dirname($this->PreviewURI);
$filename = basename($this->PreviewURI);
$this->PreviewURI = $filepath.'/'.urlencode($filename);
}
}