Ticket #8885: patch.diff

File patch.diff, 1004 bytes (added by bugmenot, 12 years ago)
  • ckeditor_php4.php

    old new  
    519519
    520520                $documentRoot = substr($realPath, 0, strlen($realPath) - strlen($selfPath));
    521521                $fileUrl = substr($file, strlen($documentRoot));
    522                 $ckeditorUrl = str_replace("ckeditor_php4.php", "", $fileUrl);
     522                $included_files = get_included_files();
     523                $ckeditorUrl = str_replace(basename(array_pop($included_files)), "", $fileUrl);
    523524
    524525                return $ckeditorUrl;
    525526        }
  • ckeditor_php5.php

    old new  
    510510
    511511                $documentRoot = substr($realPath, 0, strlen($realPath) - strlen($selfPath));
    512512                $fileUrl = substr($file, strlen($documentRoot));
    513                 $ckeditorUrl = str_replace("ckeditor_php5.php", "", $fileUrl);
     513                $included_files = get_included_files();
     514                $ckeditorUrl = str_replace(basename(array_pop($included_files)), "", $fileUrl);
    514515
    515516                return $ckeditorUrl;
    516517        }
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy