function showUCI($title) { global $wgDebugToolbar; $result = false; if (!$title->exists() || $title->getNamespace() != NS_MAIN) { return false; } $width = UCIPatrol::UCI_THUMB_WIDTH; $height = UCIPatrol::UCI_THUMB_HEIGHT; $thumbs = UCIPatrol::getUCIThumbs($title, $width, $height); if (!$thumbs || count($thumbs) == 0) { $result = false; } else { $result = true; } // reads the blacklist and whitelist files to see if images are allowed on this page // do this last since it might take more processing time if (!UCIPatrol::isUCIAllowed($title)) { $result = false; } return $result; }