| @@ 536-544 (lines=9) @@ | ||
| 533 | } |
|
| 534 | if (!empty($this->definitions[$type])) { |
|
| 535 | $def = $this->definitions[$type]; |
|
| 536 | if ($def->setup && !$optimized) { |
|
| 537 | $extra = $this->chatty ? |
|
| 538 | " (try moving this code block earlier in your initialization)" : |
|
| 539 | ""; |
|
| 540 | throw new HTMLPurifier_Exception( |
|
| 541 | "Cannot retrieve raw definition after it has already been setup" . |
|
| 542 | $extra |
|
| 543 | ); |
|
| 544 | } |
|
| 545 | if ($def->optimized === null) { |
|
| 546 | $extra = $this->chatty ? " (try flushing your cache)" : ""; |
|
| 547 | throw new HTMLPurifier_Exception( |
|
| @@ 545-550 (lines=6) @@ | ||
| 542 | $extra |
|
| 543 | ); |
|
| 544 | } |
|
| 545 | if ($def->optimized === null) { |
|
| 546 | $extra = $this->chatty ? " (try flushing your cache)" : ""; |
|
| 547 | throw new HTMLPurifier_Exception( |
|
| 548 | "Optimization status of definition is unknown" . $extra |
|
| 549 | ); |
|
| 550 | } |
|
| 551 | if ($def->optimized !== $optimized) { |
|
| 552 | $msg = $optimized ? "optimized" : "unoptimized"; |
|
| 553 | $extra = $this->chatty ? |
|