# HG changeset patch # User Dan Fuhry # Date 1459520778 14400 # Node ID 78fbedb876f304c66a2e072333b73b5f59c6cb53 # Parent 6b25c6bfd24617426272141d8f60298696d80a40 Rename constructors named from class name to __construct diff -r 6b25c6bfd246 -r 78fbedb876f3 includes/js-compressor.php --- a/includes/js-compressor.php Mon Nov 24 14:57:33 2014 -0500 +++ b/includes/js-compressor.php Fri Apr 01 10:26:18 2016 -0400 @@ -304,7 +304,7 @@ var $base, $baseLength; - function BaseConvert($base) { + function __construct($base) { $this->base = &$base; $this->baseLength = strlen($base); } diff -r 6b25c6bfd246 -r 78fbedb876f3 includes/wikiengine/TagSanitizer.php --- a/includes/wikiengine/TagSanitizer.php Mon Nov 24 14:57:33 2014 -0500 +++ b/includes/wikiengine/TagSanitizer.php Fri Apr 01 10:26:18 2016 -0400 @@ -488,7 +488,7 @@ } class ReplacerCallback { - function ReplacerCallback( $from, $to ) { + function __construct( $from, $to ) { $this->from = $from; $this->to = $to; } diff -r 6b25c6bfd246 -r 78fbedb876f3 plugins/admin/UserManager.php --- a/plugins/admin/UserManager.php Mon Nov 24 14:57:33 2014 -0500 +++ b/plugins/admin/UserManager.php Fri Apr 01 10:26:18 2016 -0400 @@ -730,7 +730,7 @@ * Constructor. */ - function Admin_UserManager_SmartForm() + function __construct() { $this->uuid = md5( mt_rand() . microtime() ); }