Rename constructors named from class name to __construct
authorDan Fuhry <dan@enanocms.org>
Fri, 01 Apr 2016 10:26:18 -0400
changeset 1382 78fbedb876f3
parent 1381 6b25c6bfd246
child 1383 198f5207119b
Rename constructors named from class name to __construct
includes/js-compressor.php
includes/wikiengine/TagSanitizer.php
plugins/admin/UserManager.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);
 	}
--- 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;
 	}
--- 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() );
 	}