Plugin Directory

Changeset 3253113


Ignore:
Timestamp:
03/10/2025 06:53:18 AM (13 months ago)
Author:
creativform
Message:

Update controller.php

Location:
serbian-transliteration
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • serbian-transliteration/tags/2.2.2/classes/controller.php

    r3253110 r3253113  
    261261            $content = Transliteration_Sanitization::get()->lat($content, $sanitize_html);
    262262        }
     263       
     264        // Restore <head> contents back to their original form
     265        if ($head_placeholders) {
     266            $content = strtr($content, $head_placeholders);
     267            unset($head_placeholders);
     268        }
    263269
    264270        // Restore percentage format specifiers back to their original form
     
    296302            $content = strtr($content, $style_placeholders);
    297303            unset($style_placeholders);
    298         }
    299        
    300         // Restore <head> contents back to their original form
    301         if ($head_placeholders) {
    302             $content = strtr($content, $head_placeholders);
    303             unset($head_placeholders);
    304304        }
    305305
  • serbian-transliteration/trunk/classes/controller.php

    r3253110 r3253113  
    261261            $content = Transliteration_Sanitization::get()->lat($content, $sanitize_html);
    262262        }
     263       
     264        // Restore <head> contents back to their original form
     265        if ($head_placeholders) {
     266            $content = strtr($content, $head_placeholders);
     267            unset($head_placeholders);
     268        }
    263269
    264270        // Restore percentage format specifiers back to their original form
     
    296302            $content = strtr($content, $style_placeholders);
    297303            unset($style_placeholders);
    298         }
    299        
    300         // Restore <head> contents back to their original form
    301         if ($head_placeholders) {
    302             $content = strtr($content, $head_placeholders);
    303             unset($head_placeholders);
    304304        }
    305305
Note: See TracChangeset for help on using the changeset viewer.