From 0868e0642f694bf5c08951f67f5a4b7eadde041a Mon Sep 17 00:00:00 2001
From: Jacek Kowalski <Jacek@jacekk.info>
Date: Thu, 05 Sep 2013 21:22:22 +0000
Subject: [PATCH] Zmiana numeru wersji na 2.6, testy jednostkowe niektórych klas (PHPUnit), dodanych wiele komentarzy dotyczących metod oraz atrybutów (Doxygen), aktualizacja instrukcji instalacji i aktualizacji.
---
class/std.php | 14 ++++++++------
1 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/class/std.php b/class/std.php
index 2f98c9f..1f5c246 100644
--- a/class/std.php
+++ b/class/std.php
@@ -13,10 +13,6 @@
$class = substr($class, 0, -9);
}
- if(!defined('BOT_TOPDIR')) {
- define('BOT_TOPDIR', dirname(__FILE__).'/../');
- }
-
if(is_file(BOT_TOPDIR.'/class/legacy/'.$class.'.php')) {
require_once(BOT_TOPDIR.'/class/legacy/'.$class.'.php');
}
@@ -26,15 +22,21 @@
}
}
+if(!defined('BOT_TOPDIR')) {
+ define('BOT_TOPDIR', dirname(__FILE__).'/../');
+}
+
function errorToException($errno, $errstr, $errfile, $errline) {
throw new ErrorException($errstr, 0, $errno, $errfile, $errline);
}
-error_reporting(E_COMPILE_ERROR|E_PARSE);
+if(!defined('PHPUNIT')) {
+ error_reporting(E_COMPILE_ERROR|E_PARSE);
+ set_error_handler('errorToException', E_ALL & ~E_NOTICE);
+}
setlocale(LC_CTYPE, 'pl_PL.utf8', 'pl_PL', 'polish', 'plk');
mb_internal_encoding('UTF-8');
libxml_use_internal_errors();
spl_autoload_register('botAutoload');
-set_error_handler('errorToException', E_ALL & ~E_NOTICE);
?>
\ No newline at end of file
--
Gitblit v1.9.1