Skip to content

Instantly share code, notes, and snippets.

@jpdevries
Last active August 29, 2015 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jpdevries/cff53d6ff3481661eeca to your computer and use it in GitHub Desktop.
Save jpdevries/cff53d6ff3481661eeca to your computer and use it in GitHub Desktop.
redactor patch
<?php
// patches https://github.com/modxcms/revolution/issues/11291 for Redactor 1.4.3 and MODX 2.2.15 - 2.3.1
$this->patch_11291 =
(bool)((bool)$this->modx->getOption('redactor.patch_11291', null, false)
&& version_compare('2.2.15-pl',$vd['full_version'],'<=')
&& version_compare('2.3.1-pl',$vd['full_version'],'>='))
;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment