Dmitry Shin 9 years ago
parent
commit
41d80e19cf
2 changed files with 4 additions and 4 deletions
  1. 1 1
      README.md
  2. 3 3
      RTG.php

+ 1 - 1
README.md

@@ -8,7 +8,7 @@ require_once 'RTG.php';
 // Example array
 $array = array
 (
-    'key_1' => 'Value 2',
+    'key_1' => 'Value 1',
     'key_2' => 'Value 2',
     'bool_Test' => TRUE,
     'null_Test' => NULL,

+ 3 - 3
RTG.php

@@ -2,7 +2,7 @@
 /**
  * HSDN Recursive Table Generator
  *
- * @version     0.07.0b
+ * @version     0.08.0b
  * @author      HSDN Team
  * @copyright   Copyright (c) 2015-2017, Information Networks Ltd.
  * @link        http://www.hsdn.org
@@ -28,7 +28,7 @@ class RTG
 	 */
 	private static $settings = array
 	(
-		'table'      => '100%',
+		'width'      => '100%',
 		'color'      => '#ccffcc',
 		'color_raw'  => '#ccccff',
 		'color_null' => '#ffcccc',
@@ -75,7 +75,7 @@ class RTG
 	 */
 	public static function table($content, $print = FALSE, $settings = array())
 	{
-		self::$settings = array_merge($settings, self::$settings);
+		self::$settings = array_merge(self::$settings, $settings);
 
 		$table = self::build_table($content);