Ticket #4924: 4924.patch

File 4924.patch, 1.9 KB (added by Wiktor Walc, 10 years ago)
  • ckeditor_php4.php

     
    456456                $args = "";
    457457                $ckeditorPath = $this->ckeditorPath();
    458458
    459                 if (!empty($this->timestamp) && $this->timestamp != "%TIMESTAMP%") {
     459                if (!empty($this->timestamp) && $this->timestamp != "%"."TIMESTAMP%") {
    460460                        $args = '?t=' . $this->timestamp;
    461461                }
    462462
     
    473473                        $extraCode .= ($extraCode ? "\n" : "") . "if (typeof(CKEDITOR) == 'undefined') { alert('The CKEDITOR object was not found. Please make sure that the ckeditor.js file is available in your installation.'); }";
    474474                }
    475475                // %REMOVE_END%
    476                 if (!empty($this->timestamp) && $this->timestamp != $this->_timestamp) {
     476                if ($this->timestamp != $this->_timestamp) {
    477477                        $extraCode .= ($extraCode ? "\n" : "") . "CKEDITOR.timestamp = '". $this->timestamp ."';";
    478478                }
    479479                if ($extraCode) {
  • ckeditor_php5.php

     
    448448                $args = "";
    449449                $ckeditorPath = $this->ckeditorPath();
    450450
    451                 if (!empty($this->timestamp) && $this->timestamp != "%TIMESTAMP%") {
     451                if (!empty($this->timestamp) && $this->timestamp != "%"."TIMESTAMP%") {
    452452                        $args = '?t=' . $this->timestamp;
    453453                }
    454454
     
    465465                        $extraCode .= ($extraCode ? "\n" : "") . "if (typeof(CKEDITOR) == 'undefined') { alert('The CKEDITOR object was not found. Please make sure that the ckeditor.js file is available in your installation.'); }";
    466466                }
    467467                // %REMOVE_END%
    468                 if (!empty($this->timestamp) && $this->timestamp != self::timestamp) {
     468                if ($this->timestamp != self::timestamp) {
    469469                        $extraCode .= ($extraCode ? "\n" : "") . "CKEDITOR.timestamp = '". $this->timestamp ."';";
    470470                }
    471471                if ($extraCode) {
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy