diff --git a/Core/Frameworks/Baikal/WWWRoot/index.php b/Core/Frameworks/Baikal/WWWRoot/index.php index 092a21c..d70abc6 100644 --- a/Core/Frameworks/Baikal/WWWRoot/index.php +++ b/Core/Frameworks/Baikal/WWWRoot/index.php @@ -40,7 +40,7 @@ if (file_exists(getcwd() . "/Core")) { } if (!file_exists(PROJECT_PATH_ROOT . 'vendor/')) { - die('
Baïkal dependencies have not been installed. Please, execute "composer install" in the folder where you installed Baïkal.'); + die('
Baïkal dependencies have not been installed. If you are a regular user, this means that you probably downloaded the wrong zip file.
To install the dependencies manually, execute "composer install" in the Baïkal root folder.
'); } require PROJECT_PATH_ROOT . 'vendor/autoload.php'; diff --git a/Core/Frameworks/BaikalAdmin/Controller/User/Calendars.php b/Core/Frameworks/BaikalAdmin/Controller/User/Calendars.php index ce68727..162abe3 100644 --- a/Core/Frameworks/BaikalAdmin/Controller/User/Calendars.php +++ b/Core/Frameworks/BaikalAdmin/Controller/User/Calendars.php @@ -68,6 +68,7 @@ class Calendars extends \Flake\Core\Controller { "linkdelete" => $this->linkDelete($calendar), "icon" => $calendar->icon(), "label" => $calendar->label(), + "events" => $calendar->getEventsBaseRequester()->count(), "description" => $calendar->get("description"), ]; } diff --git a/Core/Frameworks/BaikalAdmin/Resources/Templates/User/Calendars.html b/Core/Frameworks/BaikalAdmin/Resources/Templates/User/Calendars.html index acae86a..b1baaf9 100644 --- a/Core/Frameworks/BaikalAdmin/Resources/Templates/User/Calendars.html +++ b/Core/Frameworks/BaikalAdmin/Resources/Templates/User/Calendars.html @@ -10,6 +10,7 @@diff --git a/Core/Frameworks/BaikalAdmin/WWWRoot/index.php b/Core/Frameworks/BaikalAdmin/WWWRoot/index.php index db5676f..32bdfaa 100644 --- a/Core/Frameworks/BaikalAdmin/WWWRoot/index.php +++ b/Core/Frameworks/BaikalAdmin/WWWRoot/index.php @@ -41,7 +41,7 @@ if (file_exists(dirname(getcwd()) . "/Core")) { } if (!file_exists(PROJECT_PATH_ROOT . 'vendor/')) { - die('
Baïkal dependencies have not been installed. Please, execute "composer install" in the folder where you installed Baïkal.'); + die('
Baïkal dependencies have not been installed. If you are a regular user, this means that you probably downloaded the wrong zip file.
To install the dependencies manually, execute "composer install" in the Baïkal root folder.
'); } require PROJECT_PATH_ROOT . 'vendor/autoload.php'; diff --git a/Core/Frameworks/BaikalAdmin/WWWRoot/install/index.php b/Core/Frameworks/BaikalAdmin/WWWRoot/install/index.php index 6a757bb..e1dab04 100644 --- a/Core/Frameworks/BaikalAdmin/WWWRoot/install/index.php +++ b/Core/Frameworks/BaikalAdmin/WWWRoot/install/index.php @@ -48,7 +48,7 @@ if (file_exists(dirname(dirname(getcwd())) . "/Core")) { } if (!file_exists(PROJECT_PATH_ROOT . 'vendor/')) { - die('Baïkal dependencies have not been installed. Please, execute "composer install" in the folder where you installed Baïkal.'); + die('
Baïkal dependencies have not been installed. If you are a regular user, this means that you probably downloaded the wrong zip file.
To install the dependencies manually, execute "composer install" in the Baïkal root folder.
'); } require PROJECT_PATH_ROOT . "vendor/autoload.php"; diff --git a/Core/Frameworks/Flake/Core/Database.php b/Core/Frameworks/Flake/Core/Database.php index 5aeb4f5..2ede625 100644 --- a/Core/Frameworks/Flake/Core/Database.php +++ b/Core/Frameworks/Flake/Core/Database.php @@ -29,10 +29,10 @@ namespace Flake\Core; abstract class Database extends \Flake\Core\FLObject { - private $debugOutput; - private $debug_lastBuiltQuery; - private $store_lastBuiltQuery; - private $oDb; + protected $debugOutput; + protected $debug_lastBuiltQuery; + protected $store_lastBuiltQuery; + protected $oDb; /* common stuff */ diff --git a/Core/Frameworks/Flake/Core/Database/Mysql.php b/Core/Frameworks/Flake/Core/Database/Mysql.php index 8c6f641..f80e6c7 100644 --- a/Core/Frameworks/Flake/Core/Database/Mysql.php +++ b/Core/Frameworks/Flake/Core/Database/Mysql.php @@ -29,10 +29,6 @@ namespace Flake\Core\Database; class Mysql extends \Flake\Core\Database { - protected $oDb = false; // current DB link - protected $debugOutput = false; - protected $store_lastBuiltQuery = true; - protected $debug_lastBuiltQuery = ""; protected $sHost = ""; protected $sDbName = ""; protected $sUsername = ""; diff --git a/Core/Frameworks/Flake/Core/Database/Sqlite.php b/Core/Frameworks/Flake/Core/Database/Sqlite.php index 471dcbb..0d793e1 100644 --- a/Core/Frameworks/Flake/Core/Database/Sqlite.php +++ b/Core/Frameworks/Flake/Core/Database/Sqlite.php @@ -29,10 +29,6 @@ namespace Flake\Core\Database; class Sqlite extends \Flake\Core\Database { - protected $oDb = false; // current DB link - protected $debugOutput = false; - protected $store_lastBuiltQuery = true; - protected $debug_lastBuiltQuery = ""; protected $sDbPath = ""; function __construct($sDbPath) { diff --git a/html/cal.php b/html/cal.php index 6efbef2..3a52cc2 100644 --- a/html/cal.php +++ b/html/cal.php @@ -42,7 +42,7 @@ if (file_exists(getcwd() . "/Core")) { } if (!file_exists(PROJECT_PATH_ROOT . 'vendor/')) { - die('Baïkal dependencies have not been installed. Please, execute "composer install" in the folder where you installed Baïkal.'); + die('
Baïkal dependencies have not been installed. If you are a regular user, this means that you probably downloaded the wrong zip file.
To install the dependencies manually, execute "composer install" in the Baïkal root folder.
'); } require PROJECT_PATH_ROOT . 'vendor/autoload.php'; diff --git a/html/card.php b/html/card.php index ef69b5b..4c36852 100644 --- a/html/card.php +++ b/html/card.php @@ -42,7 +42,7 @@ if (file_exists(getcwd() . "/Core")) { } if (!file_exists(PROJECT_PATH_ROOT . 'vendor/')) { - die('Baïkal dependencies have not been installed. Please, execute "composer install" in the folder where you installed Baïkal.'); + die('
Baïkal dependencies have not been installed. If you are a regular user, this means that you probably downloaded the wrong zip file.
To install the dependencies manually, execute "composer install" in the Baïkal root folder.
'); } require PROJECT_PATH_ROOT . 'vendor/autoload.php'; diff --git a/html/dav.php b/html/dav.php index aea37c8..be51362 100644 --- a/html/dav.php +++ b/html/dav.php @@ -42,7 +42,7 @@ if (file_exists(getcwd() . "/Core")) { } if (!file_exists(PROJECT_PATH_ROOT . 'vendor/')) { - die('Baïkal dependencies have not been installed. Please, execute "composer install" in the folder where you installed Baïkal.'); + die('
Baïkal dependencies have not been installed. If you are a regular user, this means that you probably downloaded the wrong zip file.
To install the dependencies manually, execute "composer install" in the Baïkal root folder.
'); } require PROJECT_PATH_ROOT . 'vendor/autoload.php'; diff --git a/phpstan.neon b/phpstan.neon index 0f71779..14a75c4 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -17,6 +17,3 @@ parameters: - message: '#Access to undefined constant Flake\\Core\\Model::LABELFIELD.#' path: Core/Frameworks/Flake/Core/Model.php - - - message: '#Declaration of Flake\\Core\\Datastructure\\Chain::push\(Flake\\Core\\Datastructure\\Chainable \$value\) should be compatible with SplDoublyLinkedList::push\(\$value\)#' - path: Core/Frameworks/Flake/Core/Datastructure/Chain.php