Merge branch 'master' into rework-configuration

This commit is contained in:
ByteHamster 2020-03-22 15:04:19 +01:00
commit 0c0a8f4b21
12 changed files with 13 additions and 21 deletions

View file

@ -40,7 +40,7 @@ if (file_exists(getcwd() . "/Core")) {
} }
if (!file_exists(PROJECT_PATH_ROOT . 'vendor/')) { if (!file_exists(PROJECT_PATH_ROOT . 'vendor/')) {
die('<h1>Incomplete installation</h1><p>Ba&iuml;kal dependencies have not been installed. Please, execute "<strong>composer install</strong>" in the folder where you installed Ba&iuml;kal.'); die('<h1>Incomplete installation</h1><p>Ba&iuml;kal dependencies have not been installed. If you are a regular user, this means that you probably downloaded the wrong zip file.</p><p>To install the dependencies manually, execute "<strong>composer install</strong>" in the Ba&iuml;kal root folder.</p>');
} }
require PROJECT_PATH_ROOT . 'vendor/autoload.php'; require PROJECT_PATH_ROOT . 'vendor/autoload.php';

View file

@ -68,6 +68,7 @@ class Calendars extends \Flake\Core\Controller {
"linkdelete" => $this->linkDelete($calendar), "linkdelete" => $this->linkDelete($calendar),
"icon" => $calendar->icon(), "icon" => $calendar->icon(),
"label" => $calendar->label(), "label" => $calendar->label(),
"events" => $calendar->getEventsBaseRequester()->count(),
"description" => $calendar->get("description"), "description" => $calendar->get("description"),
]; ];
} }

View file

@ -10,6 +10,7 @@
<thead> <thead>
<tr> <tr>
<th>Display name</th> <th>Display name</th>
<th>Events</th>
<th>Description</th> <th>Description</th>
<th class="no-border-left"></th> <th class="no-border-left"></th>
</tr> </tr>
@ -18,6 +19,7 @@
{% for calendar in calendars %} {% for calendar in calendars %}
<tr> <tr>
<td class="col-displayname"><i class="{{ calendar.icon }}"></i>{{ calendar.label|escape }}</td> <td class="col-displayname"><i class="{{ calendar.icon }}"></i>{{ calendar.label|escape }}</td>
<td class="col-events">{{ calendar.events|escape }}</td>
<td class="col-description">{{ calendar.description|escape }}</td> <td class="col-description">{{ calendar.description|escape }}</td>
<td class="col-actions no-border-left"> <td class="col-actions no-border-left">
<p class="pull-right"> <p class="pull-right">

View file

@ -41,7 +41,7 @@ if (file_exists(dirname(getcwd()) . "/Core")) {
} }
if (!file_exists(PROJECT_PATH_ROOT . 'vendor/')) { if (!file_exists(PROJECT_PATH_ROOT . 'vendor/')) {
die('<h1>Incomplete installation</h1><p>Ba&iuml;kal dependencies have not been installed. Please, execute "<strong>composer install</strong>" in the folder where you installed Ba&iuml;kal.'); die('<h1>Incomplete installation</h1><p>Ba&iuml;kal dependencies have not been installed. If you are a regular user, this means that you probably downloaded the wrong zip file.</p><p>To install the dependencies manually, execute "<strong>composer install</strong>" in the Ba&iuml;kal root folder.</p>');
} }
require PROJECT_PATH_ROOT . 'vendor/autoload.php'; require PROJECT_PATH_ROOT . 'vendor/autoload.php';

View file

@ -48,7 +48,7 @@ if (file_exists(dirname(dirname(getcwd())) . "/Core")) {
} }
if (!file_exists(PROJECT_PATH_ROOT . 'vendor/')) { if (!file_exists(PROJECT_PATH_ROOT . 'vendor/')) {
die('<h1>Incomplete installation</h1><p>Ba&iuml;kal dependencies have not been installed. Please, execute "<strong>composer install</strong>" in the folder where you installed Ba&iuml;kal.'); die('<h1>Incomplete installation</h1><p>Ba&iuml;kal dependencies have not been installed. If you are a regular user, this means that you probably downloaded the wrong zip file.</p><p>To install the dependencies manually, execute "<strong>composer install</strong>" in the Ba&iuml;kal root folder.</p>');
} }
require PROJECT_PATH_ROOT . "vendor/autoload.php"; require PROJECT_PATH_ROOT . "vendor/autoload.php";

View file

@ -29,10 +29,10 @@ namespace Flake\Core;
abstract class Database extends \Flake\Core\FLObject { abstract class Database extends \Flake\Core\FLObject {
private $debugOutput; protected $debugOutput;
private $debug_lastBuiltQuery; protected $debug_lastBuiltQuery;
private $store_lastBuiltQuery; protected $store_lastBuiltQuery;
private $oDb; protected $oDb;
/* common stuff */ /* common stuff */

View file

@ -29,10 +29,6 @@ namespace Flake\Core\Database;
class Mysql extends \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 $sHost = "";
protected $sDbName = ""; protected $sDbName = "";
protected $sUsername = ""; protected $sUsername = "";

View file

@ -29,10 +29,6 @@ namespace Flake\Core\Database;
class Sqlite extends \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 = ""; protected $sDbPath = "";
function __construct($sDbPath) { function __construct($sDbPath) {

View file

@ -42,7 +42,7 @@ if (file_exists(getcwd() . "/Core")) {
} }
if (!file_exists(PROJECT_PATH_ROOT . 'vendor/')) { if (!file_exists(PROJECT_PATH_ROOT . 'vendor/')) {
die('<h1>Incomplete installation</h1><p>Ba&iuml;kal dependencies have not been installed. Please, execute "<strong>composer install</strong>" in the folder where you installed Ba&iuml;kal.'); die('<h1>Incomplete installation</h1><p>Ba&iuml;kal dependencies have not been installed. If you are a regular user, this means that you probably downloaded the wrong zip file.</p><p>To install the dependencies manually, execute "<strong>composer install</strong>" in the Ba&iuml;kal root folder.</p>');
} }
require PROJECT_PATH_ROOT . 'vendor/autoload.php'; require PROJECT_PATH_ROOT . 'vendor/autoload.php';

View file

@ -42,7 +42,7 @@ if (file_exists(getcwd() . "/Core")) {
} }
if (!file_exists(PROJECT_PATH_ROOT . 'vendor/')) { if (!file_exists(PROJECT_PATH_ROOT . 'vendor/')) {
die('<h1>Incomplete installation</h1><p>Ba&iuml;kal dependencies have not been installed. Please, execute "<strong>composer install</strong>" in the folder where you installed Ba&iuml;kal.'); die('<h1>Incomplete installation</h1><p>Ba&iuml;kal dependencies have not been installed. If you are a regular user, this means that you probably downloaded the wrong zip file.</p><p>To install the dependencies manually, execute "<strong>composer install</strong>" in the Ba&iuml;kal root folder.</p>');
} }
require PROJECT_PATH_ROOT . 'vendor/autoload.php'; require PROJECT_PATH_ROOT . 'vendor/autoload.php';

View file

@ -42,7 +42,7 @@ if (file_exists(getcwd() . "/Core")) {
} }
if (!file_exists(PROJECT_PATH_ROOT . 'vendor/')) { if (!file_exists(PROJECT_PATH_ROOT . 'vendor/')) {
die('<h1>Incomplete installation</h1><p>Ba&iuml;kal dependencies have not been installed. Please, execute "<strong>composer install</strong>" in the folder where you installed Ba&iuml;kal.'); die('<h1>Incomplete installation</h1><p>Ba&iuml;kal dependencies have not been installed. If you are a regular user, this means that you probably downloaded the wrong zip file.</p><p>To install the dependencies manually, execute "<strong>composer install</strong>" in the Ba&iuml;kal root folder.</p>');
} }
require PROJECT_PATH_ROOT . 'vendor/autoload.php'; require PROJECT_PATH_ROOT . 'vendor/autoload.php';

View file

@ -17,6 +17,3 @@ parameters:
- -
message: '#Access to undefined constant Flake\\Core\\Model::LABELFIELD.#' message: '#Access to undefined constant Flake\\Core\\Model::LABELFIELD.#'
path: Core/Frameworks/Flake/Core/Model.php 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