partkeepr

fork of partkeepr
git clone https://git.e1e0.net/partkeepr.git
Log | Files | Refs | Submodules | README | LICENSE

commit b17fceed02e07a4f0c64f4fe70bf1a8b9e9ecec1
parent c7b5996d41b6283f610bef3aa5d92295e38c19c5
Author: Felicitus <felicitus@felicitus.org>
Date:   Wed, 29 Jun 2011 22:50:35 +0200

support absolute paths in the cronjobs

Diffstat:
Mcronjobs/CreateStatisticSnapshot.php | 2+-
Mcronjobs/UpdatePartCacheData.php | 2+-
Msrc/de/RaumZeitLabor/PartKeepr/Statistic/StatisticSnapshotManager.php | 4++--
3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/cronjobs/CreateStatisticSnapshot.php b/cronjobs/CreateStatisticSnapshot.php @@ -3,7 +3,7 @@ namespace de\RaumZeitLabor\PartKeepr\Cronjobs; declare(encoding = 'UTF-8'); -include("../src/de/RaumZeitLabor/PartKeepr/PartKeepr.php"); +include(__DIR__."/../src/de/RaumZeitLabor/PartKeepr/PartKeepr.php"); use de\RaumZeitLabor\PartKeepr\PartKeepr; use de\RaumZeitLabor\PartKeepr\Statistic\StatisticSnapshotManager; diff --git a/cronjobs/UpdatePartCacheData.php b/cronjobs/UpdatePartCacheData.php @@ -3,7 +3,7 @@ namespace de\RaumZeitLabor\PartKeepr\Cronjobs; declare(encoding = 'UTF-8'); -include("../src/de/RaumZeitLabor/PartKeepr/PartKeepr.php"); +include(__DIR__."/../src/de/RaumZeitLabor/PartKeepr/PartKeepr.php"); use de\RaumZeitLabor\PartKeepr\PartKeepr; use de\RaumZeitLabor\PartKeepr\Statistic\StatisticSnapshotManager; diff --git a/src/de/RaumZeitLabor/PartKeepr/Statistic/StatisticSnapshotManager.php b/src/de/RaumZeitLabor/PartKeepr/Statistic/StatisticSnapshotManager.php @@ -7,7 +7,7 @@ use de\RaumZeitLabor\PartKeepr\Util\Singleton, de\RaumZeitLabor\PartKeepr\Part\PartManager, de\RaumZeitLabor\PartKeepr\PartUnit\PartUnitManager, de\RaumZeitLabor\PartKeepr\PartKeepr, - de\RaumZeitLabor\PartKeepr\Category\CategoryManager, + de\RaumZeitLabor\PartKeepr\PartCategory\PartCategoryManager, de\RaumZeitLabor\PartKeepr\PartUnit\Exceptions\PartUnitNotFoundException; class StatisticSnapshotManager extends Singleton { @@ -15,7 +15,7 @@ class StatisticSnapshotManager extends Singleton { $snapshot = new StatisticSnapshot(); $snapshot->setParts(PartManager::getInstance()->getPartCount()); - $snapshot->setCategories(CategoryManager::getInstance()->getCategoryCount()); + $snapshot->setCategories(PartCategoryManager::getInstance()->getCategoryCount()); $result = PartUnitManager::getInstance()->getUnitCounts();