forked from Cavemanon/cavepaintings
check for classes being loaded, not files existing
This commit is contained in:
@@ -215,10 +215,10 @@ class UploadTheme extends Themelet {
|
||||
|
||||
// Bookmarklet checks if shimmie supports ext. If not, won't upload to site/shows alert saying not supported.
|
||||
$supported_ext = "jpg jpeg gif png";
|
||||
if(file_exists("ext/handle_flash")){$supported_ext .= " swf";}
|
||||
if(file_exists("ext/handle_ico")){$supported_ext .= " ico ani cur";}
|
||||
if(file_exists("ext/handle_mp3")){$supported_ext .= " mp3";}
|
||||
if(file_exists("ext/handle_svg")){$supported_ext .= " svg";}
|
||||
if(class_exists("FlashFileHandler")){$supported_ext .= " swf";}
|
||||
if(class_exists("ICOFileHandler")){$supported_ext .= " ico ani cur";}
|
||||
if(class_exists("MP3FileHandler")){$supported_ext .= " mp3";}
|
||||
if(class_exists("SVGFileHandler")){$supported_ext .= " svg";}
|
||||
$title = "Booru to " . $config->get_string('title');
|
||||
// CA=0: Ask to use current or new tags | CA=1: Always use current tags | CA=2: Always use new tags
|
||||
$html .= '<p><a href="javascript:
|
||||
|
Reference in New Issue
Block a user