check for classes being loaded, not files existing

This commit is contained in:
Shish
2012-05-23 10:39:21 +01:00
parent 2e76add61b
commit bfd4ddea17
8 changed files with 18 additions and 18 deletions

View File

@ -329,7 +329,7 @@ class Upload extends Extension {
}
// Checks if url contains rating, also checks if the rating extension is enabled.
if($config->get_string("transload_engine", "none") != "none" && file_exists("ext/rating") && !empty($_GET['rating'])) {
if($config->get_string("transload_engine", "none") != "none" && class_exists("Ratings") && !empty($_GET['rating'])) {
// Rating event will validate that this is s/q/e/u
$rating = strtolower($_GET['rating']);
$rating = $rating[0];