64 $file = $this->repoGroup->findFile( $name );
68 $name = $file->getTitle()->getDBkey();
73 if ( !$this->hookRunner->onBadImage( $name, $bad ) ) {
77 if ( $this->badFiles ===
null ) {
78 $list = ( $this->listCallback )();
79 $key = $this->cache->makeKey(
'bad-image-list', sha1( $list ) );
80 $this->badFiles = $this->cache->getWithSetCallback(
83 function () use ( $list ) {
84 return $this->buildBadFilesList( $list );
89 return isset( $this->badFiles[$name] ) && ( !$contextTitle ||
90 !isset( $this->badFiles[$name][$contextTitle->getNamespace()][$contextTitle->getDBkey()] ) );