Guest User

Untitled

a guest
Apr 23rd, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. Index: parser/Parser.php
  2. ===================================================================
  3. --- parser/Parser.php (revision 104470)
  4. +++ parser/Parser.php (working copy)
  5. @@ -5130,6 +5129,7 @@
  6. */
  7. function disableCache() {
  8. wfDebug( "Parser output marked as uncacheable.\n" );
  9. + if ( !$this->mOutput ) throw new MWException( "disableCache called at wrong point" );
  10. $this->mOutput->setCacheTime( -1 ); // old style, for compatibility
  11. $this->mOutput->updateCacheExpiry( 0 ); // new style, for consistency
  12. }
Add Comment
Please, Sign In to add comment