partkeepr

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

commit df5daad4b31fbe34413380818c2530f502b43df0
parent 79bf3c5808175d7627ddb522578002027c0062b7
Author: Timo A. Hummel <felicitus@felicitus.org>
Date:   Fri,  6 Nov 2015 23:41:14 +0100

Removed legacy scripts

Diffstat:
Dscripts/UpdateCategoryPathCache.php | 26--------------------------
1 file changed, 0 insertions(+), 26 deletions(-)

diff --git a/scripts/UpdateCategoryPathCache.php b/scripts/UpdateCategoryPathCache.php @@ -1,25 +0,0 @@ -<?php -/** - * This is a script which updates all category path caches to the configured path separator. - * - * This script needs to be called after changing the partkeepr.category.path_separator. - */ -namespace PartKeepr\Scripts; - -use PartKeepr\PartKeepr, - \PartKeepr\PartBundle\Entity\PartCategoryManager, - PartKeepr\Util\Configuration, - \PartKeepr\FootprintBundle\Entity\FootprintCategoryManager; - -include("../src/backend/PartKeepr/PartKeepr.php"); - - -PartKeepr::initialize(); - -PartCategoryManager::getInstance()->updateCategoryPaths(PartCategoryManager::getInstance()->getRootNode()); -FootprintCategoryManager::getInstance()->updateCategoryPaths(FootprintCategoryManager::getInstance()->getRootNode()); - -PartKeepr::getEM()->flush(); - -echo "All categories are updated for the configured category seperator of "; -echo Configuration::getOption("partkeepr.category.path_separator") ."\n";- \ No newline at end of file