protected function issueReplacements()
 {
     foreach (Requirements::$disable_replaced_files_for as $class) {
         if (\Controller::curr() && is_a(\Controller::curr(), $class)) {
             return;
         }
     }
     $replaced = Requirements::replacements();
     if (count($replaced)) {
         foreach ($replaced as $old => $new) {
             if (isset($this->css[$old])) {
                 $old = $this->css[$old];
                 unset($this->css[$old]);
                 $this->css[$new] = $old;
             } elseif (isset($this->javascript[$old])) {
                 unset($this->javascript[$old]);
                 $this->javascript[$new] = true;
             } elseif (isset($this->customScript[$old])) {
                 unset($this->customScript[$old]);
                 $this->customScript[$new] = true;
             } elseif (isset($this->customCSS[$old])) {
                 unset($this->customCSS[$old]);
                 $this->customCSS[$new] = true;
             } elseif (isset($this->customHeadTags[$old])) {
                 unset($this->customHeadTags[$old]);
                 $this->customHeadTags[$new] = true;
             }
         }
     }
 }