Permalink
Browse files

Makes htaccess update compatible with old websites.

  • Loading branch information...
JB Lebrun
JB Lebrun committed Sep 19, 2018
1 parent 623a5e1 commit f49365e126d6569a8b8f9f46edd8ab4f43dab2a2
Showing with 3 additions and 3 deletions.
  1. +3 −3 engine/lib/object/Plugin.php.inc
@@ -5,7 +5,7 @@
* @details Engine / Object Library
* @file engine/lib/object/Plugin.php.inc
* @author CaMykS Team <camyks.contact@gmail.com>
* @version 1.0.5
* @version 1.0.6
* @date Creation: Jun 2005
* @date Modification: Sep 2018
* @copyright 2005 - 2018 CaMykS Team
@@ -573,8 +573,8 @@ abstract class Plugin {
$hta = preg_replace('/### '.$this->name.' ###([\s\S]*)### '.$this->name.' ###/s', $content, $hta);
} else {
/* Add new content */
$content .= "\n\n # site page";
$hta = preg_replace('/ # site page/', $content, $hta);
$content .= "\n\n$1# site page";
$hta = preg_replace('/([ ]{0,2})# site page/', $content, $hta);
}
return file_write('.htaccess', $hta);

0 comments on commit f49365e

Please sign in to comment.