624476fc by Chris Boden

Fixed PP bug, added Disabler as svn external, moved scripts to separate directory

1 parent a8e73e7b
...@@ -111,7 +111,6 @@ class Auth_Validation { ...@@ -111,7 +111,6 @@ class Auth_Validation {
111 self::$errors[] = 'Password can not be blank'; 111 self::$errors[] = 'Password can not be blank';
112 return false; 112 return false;
113 } 113 }
114 self::$pass_check = $val;
115 114
116 return true; 115 return true;
117 } 116 }
......
...@@ -6,22 +6,19 @@ Description: Various classes and functions to help out with stuff ...@@ -6,22 +6,19 @@ Description: Various classes and functions to help out with stuff
6 Author: Tenzing 6 Author: Tenzing
7 */ 7 */
8 8
9 if (version_compare(PHP_VERSION, '5.2.2') !== 1) { 9 TzTools::make();
10 die('PHP version 5.2.2 or greater is required');
11 }
12
13 TzTools::load();
14 10
15 class TzTools { 11 class TzTools {
16 public static function load() { 12 public static function make() {
17 spl_autoload_register(Array(__CLASS__, 'autoloader')); 13 spl_autoload_register(Array(__CLASS__, 'autoloader'));
18 14
19 require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'wp_functions.php'); 15 require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'wp_functions.php');
20 16
21 _register_script('addEvent', self::tools_url('addEvent.js', __FILE__)); 17 _register_script('addEvent', self::tools_url('scripts/addEvent.js', __FILE__));
22 _register_script('xmlhttpHandler', self::tools_url('xmlhttpHandler.js', __FILE__)); 18 _register_script('xmlhttpHandler', self::tools_url('scripts/xmlhttpHandler.js', __FILE__));
23 _register_script('fireEvent', self::tools_url('fireEvent.js', __FILE__)); 19 _register_script('fireEvent', self::tools_url('scripts/fireEvent.js', __FILE__));
24 20
21 // This is (hopefully) getting canned in 3.0
25 add_action('widgets_init', Array('MenuWidget', 'init')); 22 add_action('widgets_init', Array('MenuWidget', 'init'));
26 self::import('ShortCodes'); 23 self::import('ShortCodes');
27 } 24 }
......