Merge branch 'master' of github.com:thelia/thelia

This commit is contained in:
Manuel Raynaud
2013-09-09 09:03:02 +02:00
2 changed files with 39 additions and 6 deletions

View File

@@ -293,13 +293,11 @@ class TheliaLoop extends AbstractSmartyPlugin
}
/**
* @param $smartyParams
*
* find the loop class with his name and construct an instance of this class
*
* @param string $name
* @return \Thelia\Core\Template\Element\BaseLoop
* @throws InvalidElementException
* @throws ElementNotFoundException
* @return object
* @throws \Thelia\Core\Template\Element\Exception\InvalidElementException
* @throws \Thelia\Core\Template\Element\Exception\ElementNotFoundException
*/
protected function createLoopInstance($smartyParams)
{

35
reset_install.bat Normal file
View File

@@ -0,0 +1,35 @@
echo off
REM @author Guillaume MOREL
REM v0.1
echo [WARN] This script will reset this Thelia2 install
if exist local\config\database.yml (
echo [INFO] Downloading vendors
composer install --prefer-dist
cd local\config\
echo [INFO] Building Models file
..\..\bin\propel build -v --output-dir=../../core/lib/
echo [INFO] Building SQL CREATE file
..\..\bin\propel sql:build -v --output-dir=../../install/
echo [INFO] Reloaded Thelia2 database
cd ..\..
del install\sqldb.map
php Thelia thelia:dev:reloadDB
echo [INFO] Installing fixtures
php install\faker.php
echo [INFO] Adding admin
php Thelia thelia:create-admin
echo [SUCCESS] Reset done
)
) else (
echo [FAILED] Please add your database informations in local\config\database.yml and start this script again.
)