Permalink
Browse files

Fix for php 7

  • Loading branch information...
yama committed Dec 6, 2017
1 parent fd93564 commit baa2e7fc1ca4a1bb732df9c4d4146d6ccf9af153
@@ -6,7 +6,7 @@ class directResize {
//-------------------------------------------------------------------------------------------------
function directResize($drconfig, $input)
function __construct($drconfig, $input)
{
$this->Labels = array("drlightbox", "drthumbonly", "drskip");
@@ -1,6 +1,6 @@
<?php
/**
* Modified by Metaller for DirectResize plugin for MODx CMS (http://modxcms.com)
* Modified by Metaller for DirectResize plugin for Evolution CMS (http://modx.im)
*
*This is a class that can process an image on the fly by either generate a thumbnail, apply an watermark to the image, or resize it.
*
@@ -181,7 +181,7 @@ class DRThumbnail {
*@param string filename of the source image file
*@return boolean
**/
function DRThumbnail($imgfile) {
function __construct($imgfile) {
$img_info = getimagesize( $imgfile );
//detect image format
@@ -11,7 +11,7 @@
class DRChunkie {
var $template, $phx, $phxreq, $phxerror, $check;
function DRChunkie($template = '') {
function __construct($template = '') {
if (!class_exists("PHxParser")) include_once(strtr(realpath(dirname(__FILE__))."/phx.parser.class.inc.php", '\\', '/'));
$this->template = $this->getTemplate($template);
$this->phx = new PHxParser();
@@ -11,7 +11,7 @@
class PHxParser {
var $placeholders = array();
function PHxParser($debug=0,$maxpass=50) {
function __construct($debug=0,$maxpass=50) {
global $modx;
$this->name = "PHx";
$this->version = "2.1.2";

0 comments on commit baa2e7f

Please sign in to comment.