Merge branch 'master' of https://github.com/thelia/thelia
This commit is contained in:
0
CHANGELOG.md
Executable file → Normal file
0
CHANGELOG.md
Executable file → Normal file
0
COPYRIGHT.txt
Executable file → Normal file
0
COPYRIGHT.txt
Executable file → Normal file
0
LICENSE.txt
Executable file → Normal file
0
LICENSE.txt
Executable file → Normal file
31
composer.json
Executable file → Normal file
31
composer.json
Executable file → Normal file
@@ -9,7 +9,7 @@
|
||||
},
|
||||
"require":{
|
||||
"php": ">=5.4",
|
||||
"ircmaxell/password-compat": "dev-master",
|
||||
"ircmaxell/password-compat": "1.0.*",
|
||||
"propel/propel": "dev-master",
|
||||
"psr/log" : "1.0",
|
||||
"symfony/class-loader": "2.2.*",
|
||||
@@ -30,12 +30,12 @@
|
||||
|
||||
"smarty/smarty": "v3.1.14",
|
||||
"kriswallsmith/assetic": "1.2.*@dev",
|
||||
"leafo/lessphp": "0.3.*@dev",
|
||||
"ptachoire/cssembed": "dev-master",
|
||||
"leafo/lessphp": "0.4.*",
|
||||
"ptachoire/cssembed": "1.0.*",
|
||||
|
||||
"simplepie/simplepie": "dev-master",
|
||||
|
||||
"imagine/imagine": "dev-master",
|
||||
"imagine/imagine": "0.*",
|
||||
"symfony/icu": "1.0",
|
||||
"swiftmailer/swiftmailer": "5.0.*",
|
||||
"symfony/serializer": "2.3.*",
|
||||
@@ -62,5 +62,26 @@
|
||||
"branch-alias": {
|
||||
"dev-master": "2.0.0-dev"
|
||||
}
|
||||
}
|
||||
},
|
||||
"repositories": [
|
||||
{
|
||||
"type": "package",
|
||||
"package": {
|
||||
"name": "smarty/smarty",
|
||||
"version": "3.1.14",
|
||||
"dist": {
|
||||
"url": "http://www.smarty.net/files/Smarty-3.1.14.zip",
|
||||
"type": "zip"
|
||||
},
|
||||
"source": {
|
||||
"url": "http://smarty-php.googlecode.com/svn/",
|
||||
"type": "svn",
|
||||
"reference": "tags/Smarty_3_1_14/distribution/"
|
||||
},
|
||||
"autoload": {
|
||||
"classmap": ["libs/"]
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
65
composer.lock
generated
Executable file → Normal file
65
composer.lock
generated
Executable file → Normal file
@@ -3,7 +3,7 @@
|
||||
"This file locks the dependencies of your project to a known state",
|
||||
"Read more about it at http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file"
|
||||
],
|
||||
"hash": "f779af80bcfc2ed1deefba9350bdcf66",
|
||||
"hash": "92d99dbb21763697accf7050ded155b6",
|
||||
"packages": [
|
||||
{
|
||||
"name": "ensepar/html2pdf",
|
||||
@@ -111,7 +111,7 @@
|
||||
},
|
||||
{
|
||||
"name": "imagine/imagine",
|
||||
"version": "dev-master",
|
||||
"version": "v0.5.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/avalanche123/Imagine.git",
|
||||
@@ -163,16 +163,16 @@
|
||||
},
|
||||
{
|
||||
"name": "ircmaxell/password-compat",
|
||||
"version": "dev-master",
|
||||
"version": "1.0.3",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/ircmaxell/password_compat.git",
|
||||
"reference": "5d44eec3b571b4a6daae45794b0a31fbbf63c74c"
|
||||
"reference": "1fc1521b5e9794ea77e4eca30717be9635f1d4f4"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/ircmaxell/password_compat/zipball/5d44eec3b571b4a6daae45794b0a31fbbf63c74c",
|
||||
"reference": "5d44eec3b571b4a6daae45794b0a31fbbf63c74c",
|
||||
"url": "https://api.github.com/repos/ircmaxell/password_compat/zipball/1fc1521b5e9794ea77e4eca30717be9635f1d4f4",
|
||||
"reference": "1fc1521b5e9794ea77e4eca30717be9635f1d4f4",
|
||||
"shasum": ""
|
||||
},
|
||||
"type": "library",
|
||||
@@ -198,7 +198,7 @@
|
||||
"hashing",
|
||||
"password"
|
||||
],
|
||||
"time": "2013-06-24 12:01:11"
|
||||
"time": "2013-04-30 19:58:08"
|
||||
},
|
||||
{
|
||||
"name": "kriswallsmith/assetic",
|
||||
@@ -273,7 +273,7 @@
|
||||
},
|
||||
{
|
||||
"name": "leafo/lessphp",
|
||||
"version": "dev-master",
|
||||
"version": "v0.4.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/leafo/lessphp.git",
|
||||
@@ -417,7 +417,7 @@
|
||||
},
|
||||
{
|
||||
"name": "ptachoire/cssembed",
|
||||
"version": "dev-master",
|
||||
"version": "v1.0.2",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/krichprollsch/phpCssEmbed.git",
|
||||
@@ -512,47 +512,24 @@
|
||||
},
|
||||
{
|
||||
"name": "smarty/smarty",
|
||||
"version": "v3.1.14",
|
||||
"version": "3.1.14",
|
||||
"source": {
|
||||
"type": "svn",
|
||||
"url": "http://smarty-php.googlecode.com/svn",
|
||||
"reference": "/tags/v3.1.14/@4752"
|
||||
"url": "http://smarty-php.googlecode.com/svn/",
|
||||
"reference": "tags/Smarty_3_1_14/distribution/"
|
||||
},
|
||||
"require": {
|
||||
"php": ">=5.2"
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "http://www.smarty.net/files/Smarty-3.1.14.zip",
|
||||
"reference": null,
|
||||
"shasum": null
|
||||
},
|
||||
"type": "library",
|
||||
"autoload": {
|
||||
"classmap": [
|
||||
"distribution/libs/Smarty.class.php",
|
||||
"distribution/libs/SmartyBC.class.php",
|
||||
"distribution/libs/sysplugins/smarty_security.php"
|
||||
"libs/"
|
||||
]
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"LGPL-3.0"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Monte Ohrt",
|
||||
"email": "monte@ohrt.com"
|
||||
},
|
||||
{
|
||||
"name": "Uwe Tews",
|
||||
"email": "uwe.tews@googlemail.com"
|
||||
},
|
||||
{
|
||||
"name": "Rodney Rehm",
|
||||
"email": "rodney.rehm@medialize.de"
|
||||
}
|
||||
],
|
||||
"description": "Smarty - the compiling PHP template engine",
|
||||
"homepage": "http://www.smarty.net",
|
||||
"keywords": [
|
||||
"templating"
|
||||
],
|
||||
"time": "2013-07-02 16:38:47"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "swiftmailer/swiftmailer",
|
||||
@@ -2279,13 +2256,9 @@
|
||||
],
|
||||
"minimum-stability": "stable",
|
||||
"stability-flags": {
|
||||
"ircmaxell/password-compat": 20,
|
||||
"propel/propel": 20,
|
||||
"kriswallsmith/assetic": 20,
|
||||
"leafo/lessphp": 20,
|
||||
"ptachoire/cssembed": 20,
|
||||
"simplepie/simplepie": 20,
|
||||
"imagine/imagine": 20,
|
||||
"fzaninotto/faker": 20,
|
||||
"maximebf/debugbar": 20
|
||||
},
|
||||
|
||||
0
core/bootstrap.php
Executable file → Normal file
0
core/bootstrap.php
Executable file → Normal file
@@ -74,7 +74,6 @@ class Attribute extends BaseAction implements EventSubscriberInterface
|
||||
*/
|
||||
public function update(AttributeUpdateEvent $event)
|
||||
{
|
||||
$search = AttributeQuery::create();
|
||||
|
||||
if (null !== $attribute = AttributeQuery::create()->findPk($event->getAttributeId())) {
|
||||
|
||||
|
||||
@@ -66,7 +66,6 @@ class AttributeAv extends BaseAction implements EventSubscriberInterface
|
||||
*/
|
||||
public function update(AttributeAvUpdateEvent $event)
|
||||
{
|
||||
$search = AttributeAvQuery::create();
|
||||
|
||||
if (null !== $attribute = AttributeAvQuery::create()->findPk($event->getAttributeAvId())) {
|
||||
|
||||
|
||||
0
core/lib/Thelia/Action/BaseAction.php
Executable file → Normal file
0
core/lib/Thelia/Action/BaseAction.php
Executable file → Normal file
@@ -42,7 +42,7 @@ class Cache extends BaseAction implements EventSubscriberInterface
|
||||
$directoryBrowser = new \DirectoryIterator($dir);
|
||||
|
||||
$fs = new Filesystem();
|
||||
$fs->remove($dir);
|
||||
$fs->remove($directoryBrowser);
|
||||
|
||||
}
|
||||
|
||||
|
||||
2
core/lib/Thelia/Action/Cart.php
Executable file → Normal file
2
core/lib/Thelia/Action/Cart.php
Executable file → Normal file
@@ -91,7 +91,7 @@ class Cart extends BaseAction implements EventSubscriberInterface
|
||||
{
|
||||
if (null !== $cartItemId = $event->getCartItem()) {
|
||||
$cart = $event->getCart();
|
||||
$cartItem = CartItemQuery::create()
|
||||
CartItemQuery::create()
|
||||
->filterByCartId($cart->getId())
|
||||
->filterById($cartItemId)
|
||||
->delete();
|
||||
|
||||
0
core/lib/Thelia/Action/Category.php
Executable file → Normal file
0
core/lib/Thelia/Action/Category.php
Executable file → Normal file
@@ -58,7 +58,6 @@ class Config extends BaseAction implements EventSubscriberInterface
|
||||
*/
|
||||
public function setValue(ConfigUpdateEvent $event)
|
||||
{
|
||||
$search = ConfigQuery::create();
|
||||
|
||||
if (null !== $config = $search->findPk($event->getConfigId())) {
|
||||
|
||||
@@ -78,7 +77,6 @@ class Config extends BaseAction implements EventSubscriberInterface
|
||||
*/
|
||||
public function modify(ConfigUpdateEvent $event)
|
||||
{
|
||||
$search = ConfigQuery::create();
|
||||
|
||||
if (null !== $config = ConfigQuery::create()->findPk($event->getConfigId())) {
|
||||
|
||||
|
||||
0
core/lib/Thelia/Action/Coupon.php
Executable file → Normal file
0
core/lib/Thelia/Action/Coupon.php
Executable file → Normal file
@@ -95,7 +95,6 @@ class Currency extends BaseAction implements EventSubscriberInterface
|
||||
*/
|
||||
public function setDefault(CurrencyUpdateEvent $event)
|
||||
{
|
||||
$search = CurrencyQuery::create();
|
||||
|
||||
if (null !== $currency = CurrencyQuery::create()->findPk($event->getCurrencyId())) {
|
||||
|
||||
|
||||
0
core/lib/Thelia/Action/Customer.php
Executable file → Normal file
0
core/lib/Thelia/Action/Customer.php
Executable file → Normal file
@@ -74,7 +74,6 @@ class Feature extends BaseAction implements EventSubscriberInterface
|
||||
*/
|
||||
public function update(FeatureUpdateEvent $event)
|
||||
{
|
||||
$search = FeatureQuery::create();
|
||||
|
||||
if (null !== $feature = FeatureQuery::create()->findPk($event->getFeatureId())) {
|
||||
|
||||
|
||||
@@ -66,7 +66,6 @@ class FeatureAv extends BaseAction implements EventSubscriberInterface
|
||||
*/
|
||||
public function update(FeatureAvUpdateEvent $event)
|
||||
{
|
||||
$search = FeatureAvQuery::create();
|
||||
|
||||
if (null !== $feature = FeatureAvQuery::create()->findPk($event->getFeatureAvId())) {
|
||||
|
||||
|
||||
0
core/lib/Thelia/Action/HttpException.php
Executable file → Normal file
0
core/lib/Thelia/Action/HttpException.php
Executable file → Normal file
2
core/lib/Thelia/Action/Image.php
Executable file → Normal file
2
core/lib/Thelia/Action/Image.php
Executable file → Normal file
@@ -355,7 +355,7 @@ class Image extends BaseCachedFile implements EventSubscriberInterface
|
||||
|
||||
$delta_x = $delta_y = $border_width = $border_height = 0;
|
||||
|
||||
if ($width_diff > 1 AND $height_diff > 1) {
|
||||
if ($width_diff > 1 && $height_diff > 1) {
|
||||
|
||||
$next_width = $width_orig;
|
||||
$next_height = $height_orig;
|
||||
|
||||
@@ -68,7 +68,6 @@ class Message extends BaseAction implements EventSubscriberInterface
|
||||
*/
|
||||
public function modify(MessageUpdateEvent $event)
|
||||
{
|
||||
$search = MessageQuery::create();
|
||||
|
||||
if (null !== $message = MessageQuery::create()->findPk($event->getMessageId())) {
|
||||
|
||||
|
||||
@@ -94,8 +94,7 @@ class Module extends BaseAction implements EventSubscriberInterface
|
||||
|
||||
$fs = new Filesystem();
|
||||
$fs->remove($path);
|
||||
}
|
||||
catch (\ReflectionException $ex) {
|
||||
} catch (\ReflectionException $ex) {
|
||||
// Happens probably because the module directory has been deleted.
|
||||
// Log a warning, and delete the database entry.
|
||||
Tlog::getInstance()->addWarning(
|
||||
|
||||
2
core/lib/Thelia/Action/Order.php
Executable file → Normal file
2
core/lib/Thelia/Action/Order.php
Executable file → Normal file
@@ -334,7 +334,7 @@ class Order extends BaseAction implements EventSubscriberInterface
|
||||
// Build subject and body
|
||||
$message->build($parser, $instance);
|
||||
|
||||
$mail = $this->getMailer()->send($instance);
|
||||
$this->getMailer()->send($instance);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -378,7 +378,7 @@ class Product extends BaseAction implements EventSubscriberInterface
|
||||
*/
|
||||
public function deleteFeatureProductValue(FeatureProductDeleteEvent $event)
|
||||
{
|
||||
$featureProduct = FeatureProductQuery::create()
|
||||
FeatureProductQuery::create()
|
||||
->filterByProductId($event->getProductId())
|
||||
->filterByFeatureId($event->getFeatureId())
|
||||
->delete()
|
||||
|
||||
@@ -74,7 +74,6 @@ class Template extends BaseAction implements EventSubscriberInterface
|
||||
*/
|
||||
public function update(TemplateUpdateEvent $event)
|
||||
{
|
||||
$search = TemplateQuery::create();
|
||||
|
||||
if (null !== $template = TemplateQuery::create()->findPk($event->getTemplateId())) {
|
||||
|
||||
|
||||
0
core/lib/Thelia/Cart/CartTrait.php
Executable file → Normal file
0
core/lib/Thelia/Cart/CartTrait.php
Executable file → Normal file
0
core/lib/Thelia/Command/BaseModuleGenerate.php
Executable file → Normal file
0
core/lib/Thelia/Command/BaseModuleGenerate.php
Executable file → Normal file
0
core/lib/Thelia/Command/CacheClear.php
Executable file → Normal file
0
core/lib/Thelia/Command/CacheClear.php
Executable file → Normal file
0
core/lib/Thelia/Command/ClearImageCache.php
Executable file → Normal file
0
core/lib/Thelia/Command/ClearImageCache.php
Executable file → Normal file
0
core/lib/Thelia/Command/ContainerAwareCommand.php
Executable file → Normal file
0
core/lib/Thelia/Command/ContainerAwareCommand.php
Executable file → Normal file
@@ -91,6 +91,7 @@ class CreateAdminUser extends ContainerAwareCommand
|
||||
protected function enterData($dialog, $output, $label, $error_message, $hidden = false)
|
||||
{
|
||||
$command = $hidden ? 'askHiddenResponse' : 'askAndValidate';
|
||||
|
||||
return $dialog->$command(
|
||||
$output,
|
||||
$this->decorateInfo($label),
|
||||
|
||||
0
core/lib/Thelia/Command/Install.php
Executable file → Normal file
0
core/lib/Thelia/Command/Install.php
Executable file → Normal file
0
core/lib/Thelia/Command/ModuleActivateCommand.php
Executable file → Normal file
0
core/lib/Thelia/Command/ModuleActivateCommand.php
Executable file → Normal file
3
core/lib/Thelia/Command/ModuleGenerateCommand.php
Executable file → Normal file
3
core/lib/Thelia/Command/ModuleGenerateCommand.php
Executable file → Normal file
@@ -110,8 +110,7 @@ class ModuleGenerateCommand extends BaseModuleGenerate
|
||||
$schemaContent = str_replace("%%NAMESPACE%%", $this->module, $schemaContent);
|
||||
|
||||
file_put_contents($this->moduleDirectory . DIRECTORY_SEPARATOR . "Config". DIRECTORY_SEPARATOR . "schema.xml", $schemaContent);
|
||||
}
|
||||
catch (\Exception $ex) {
|
||||
} catch (\Exception $ex) {
|
||||
$fs->remove($this->moduleDirectory);
|
||||
|
||||
throw $ex;
|
||||
|
||||
0
core/lib/Thelia/Command/ModuleGenerateModelCommand.php
Executable file → Normal file
0
core/lib/Thelia/Command/ModuleGenerateModelCommand.php
Executable file → Normal file
0
core/lib/Thelia/Command/ModuleGenerateSqlCommand.php
Executable file → Normal file
0
core/lib/Thelia/Command/ModuleGenerateSqlCommand.php
Executable file → Normal file
2
core/lib/Thelia/Command/Output/TheliaConsoleOutput.php
Executable file → Normal file
2
core/lib/Thelia/Command/Output/TheliaConsoleOutput.php
Executable file → Normal file
@@ -44,7 +44,7 @@ class TheliaConsoleOutput extends ConsoleOutput
|
||||
foreach ($messages as $message) {
|
||||
$length = ($strlen($message) > $length) ? $strlen($message) : $length;
|
||||
}
|
||||
$ouput = array();
|
||||
$output = array();
|
||||
foreach ($messages as $message) {
|
||||
$output[] = "<" . $style . ">" . " " . $message . str_repeat(' ', $length - $strlen($message)) . " </" . $style . ">";
|
||||
}
|
||||
|
||||
2
core/lib/Thelia/Command/Skeleton/Module/Class.php
Executable file → Normal file
2
core/lib/Thelia/Command/Skeleton/Module/Class.php
Executable file → Normal file
@@ -33,4 +33,4 @@ class %%CLASSNAME%% extends BaseModule
|
||||
*
|
||||
* Have fun !
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
||||
6
core/lib/Thelia/Command/Skeleton/Module/config.xml
Executable file → Normal file
6
core/lib/Thelia/Command/Skeleton/Module/config.xml
Executable file → Normal file
@@ -22,12 +22,6 @@
|
||||
-->
|
||||
</commands>
|
||||
|
||||
<templateDirectives>
|
||||
<!-- Sample definition
|
||||
<templateDirectives class="MyModule\Directive\MyTemplateDirective" name="my_filter"/>
|
||||
-->
|
||||
</templateDirectives>
|
||||
|
||||
<!--
|
||||
<services>
|
||||
|
||||
|
||||
2
core/lib/Thelia/Command/Skeleton/Module/module.xml
Executable file → Normal file
2
core/lib/Thelia/Command/Skeleton/Module/module.xml
Executable file → Normal file
@@ -15,4 +15,4 @@
|
||||
<type>classic</type>
|
||||
<thelia>2.0.0</thelia>
|
||||
<stability>other</stability>
|
||||
</module>
|
||||
</module>
|
||||
|
||||
0
core/lib/Thelia/Command/Skeleton/Module/schema.xml
Executable file → Normal file
0
core/lib/Thelia/Command/Skeleton/Module/schema.xml
Executable file → Normal file
@@ -56,7 +56,7 @@ class UpdateCommand extends ContainerAwareCommand
|
||||
$update = new Update();
|
||||
|
||||
try {
|
||||
$updatedVersions = $update->process();
|
||||
$update->process();
|
||||
|
||||
$output->writeln(array(
|
||||
'',
|
||||
@@ -64,8 +64,6 @@ class UpdateCommand extends ContainerAwareCommand
|
||||
''
|
||||
));
|
||||
} catch (PropelException $e) {
|
||||
$errorMsg = $e->getMessage();
|
||||
|
||||
$output->writeln(array(
|
||||
'',
|
||||
sprintf('<error>Error during update process with message : %s</error>', $e->getMessage()),
|
||||
|
||||
0
core/lib/Thelia/Config/DatabaseConfiguration.php
Executable file → Normal file
0
core/lib/Thelia/Config/DatabaseConfiguration.php
Executable file → Normal file
2
core/lib/Thelia/Config/DefinePropel.php
Executable file → Normal file
2
core/lib/Thelia/Config/DefinePropel.php
Executable file → Normal file
@@ -40,7 +40,7 @@ class DefinePropel
|
||||
{
|
||||
$connection = $this->processorConfig["connection"];
|
||||
|
||||
return $conf = array(
|
||||
return array(
|
||||
"dsn" => $connection["dsn"],
|
||||
"user" => $connection["user"],
|
||||
"password" => $connection["password"],
|
||||
|
||||
0
core/lib/Thelia/Config/Resources/action.xml
Executable file → Normal file
0
core/lib/Thelia/Config/Resources/action.xml
Executable file → Normal file
0
core/lib/Thelia/Config/Resources/config.xml
Executable file → Normal file
0
core/lib/Thelia/Config/Resources/config.xml
Executable file → Normal file
0
core/lib/Thelia/Config/Resources/routing.xml
Executable file → Normal file
0
core/lib/Thelia/Config/Resources/routing.xml
Executable file → Normal file
0
core/lib/Thelia/Config/Resources/routing/admin.xml
Executable file → Normal file
0
core/lib/Thelia/Config/Resources/routing/admin.xml
Executable file → Normal file
0
core/lib/Thelia/Controller/Admin/AbstractSeoCrudController.php
Executable file → Normal file
0
core/lib/Thelia/Controller/Admin/AbstractSeoCrudController.php
Executable file → Normal file
0
core/lib/Thelia/Controller/Admin/AdminController.php
Executable file → Normal file
0
core/lib/Thelia/Controller/Admin/AdminController.php
Executable file → Normal file
9
core/lib/Thelia/Controller/Admin/BaseAdminController.php
Executable file → Normal file
9
core/lib/Thelia/Controller/Admin/BaseAdminController.php
Executable file → Normal file
@@ -56,11 +56,13 @@ class BaseAdminController extends BaseController
|
||||
*/
|
||||
private $currentRouter = "router.admin";
|
||||
|
||||
protected function getCurrentRouter() {
|
||||
protected function getCurrentRouter()
|
||||
{
|
||||
return $this->currentRouter;
|
||||
}
|
||||
|
||||
protected function setCurrentRouter($routerId) {
|
||||
protected function setCurrentRouter($routerId)
|
||||
{
|
||||
$this->currentRouter = $routerId;
|
||||
}
|
||||
|
||||
@@ -152,9 +154,6 @@ class BaseAdminController extends BaseController
|
||||
// Log the problem
|
||||
$this->adminLogAppend(implode(",", $resources), implode(",", $accesses), "User is not granted for resources %s with accesses %s", implode(", ", $resources), implode(", ", $accesses));
|
||||
|
||||
// Generate the proper response
|
||||
$response = new Response();
|
||||
|
||||
return $this->errorPage($this->getTranslator()->trans("Sorry, you're not allowed to perform this action"), 403);
|
||||
}
|
||||
|
||||
|
||||
0
core/lib/Thelia/Controller/Admin/CategoryController.php
Executable file → Normal file
0
core/lib/Thelia/Controller/Admin/CategoryController.php
Executable file → Normal file
@@ -242,6 +242,7 @@ class ContentController extends AbstractSeoCrudController
|
||||
if (null !== $content) {
|
||||
$content->setLocale($this->getCurrentEditionLocale());
|
||||
}
|
||||
|
||||
return $content;
|
||||
}
|
||||
|
||||
|
||||
0
core/lib/Thelia/Controller/Admin/CouponController.php
Executable file → Normal file
0
core/lib/Thelia/Controller/Admin/CouponController.php
Executable file → Normal file
0
core/lib/Thelia/Controller/Admin/FileController.php
Executable file → Normal file
0
core/lib/Thelia/Controller/Admin/FileController.php
Executable file → Normal file
@@ -205,6 +205,7 @@ class FolderController extends AbstractSeoCrudController
|
||||
if (null !== $folder) {
|
||||
$folder->setLocale($this->getCurrentEditionLocale());
|
||||
}
|
||||
|
||||
return $folder;
|
||||
}
|
||||
|
||||
|
||||
@@ -278,7 +278,6 @@ class LangController extends BaseAdminController
|
||||
$data = $form->getData();
|
||||
$event = new LangUrlEvent();
|
||||
foreach ($data as $key => $value) {
|
||||
$pos= strpos($key, LangUrlForm::LANG_PREFIX);
|
||||
if (false !== strpos($key, LangUrlForm::LANG_PREFIX)) {
|
||||
$event->addUrl(substr($key,strlen(LangUrlForm::LANG_PREFIX)), $value);
|
||||
}
|
||||
@@ -316,8 +315,6 @@ class LangController extends BaseAdminController
|
||||
{
|
||||
if (null !== $response = $this->checkAuth(AdminResources::LANGUAGE, array(), AccessManager::UPDATE)) return $response;
|
||||
|
||||
$error_msg = false;
|
||||
|
||||
ConfigQuery::create()
|
||||
->filterByName('one_domain_foreach_lang')
|
||||
->update(array('Value' => $activate));
|
||||
|
||||
3
core/lib/Thelia/Controller/Admin/SessionController.php
Executable file → Normal file
3
core/lib/Thelia/Controller/Admin/SessionController.php
Executable file → Normal file
@@ -25,6 +25,7 @@ namespace Thelia\Controller\Admin;
|
||||
|
||||
use Thelia\Form\AdminLogin;
|
||||
use Thelia\Core\Security\Authentication\AdminUsernamePasswordFormAuthenticator;
|
||||
use Thelia\Form\Exception\FormValidationException;
|
||||
use Thelia\Model\AdminLog;
|
||||
use Thelia\Core\Security\Exception\AuthenticationException;
|
||||
use Thelia\Tools\URL;
|
||||
@@ -53,7 +54,7 @@ class SessionController extends BaseAdminController
|
||||
$this->adminLogAppend("admin", "LOGIN", "Successful token authentication");
|
||||
|
||||
// Update the cookie
|
||||
$cookie = $this->createAdminRememberMeCookie($user);
|
||||
$this->createAdminRememberMeCookie($user);
|
||||
|
||||
// Render the home page
|
||||
return $this->render("home");
|
||||
|
||||
@@ -38,8 +38,6 @@ class TranslationsController extends BaseAdminController
|
||||
{
|
||||
protected function renderTemplate()
|
||||
{
|
||||
// Find modules
|
||||
$modules = ModuleQuery::create()->joinI18n($this->getCurrentEditionLocale())->orderByPosition()->find();
|
||||
|
||||
// Get related strings, if all input data are here
|
||||
$item_to_translate = $this->getRequest()->get('item_to_translate');
|
||||
|
||||
0
core/lib/Thelia/Controller/BaseController.php
Executable file → Normal file
0
core/lib/Thelia/Controller/BaseController.php
Executable file → Normal file
0
core/lib/Thelia/Controller/Front/BaseFrontController.php
Executable file → Normal file
0
core/lib/Thelia/Controller/Front/BaseFrontController.php
Executable file → Normal file
0
core/lib/Thelia/Controller/Front/DefaultController.php
Executable file → Normal file
0
core/lib/Thelia/Controller/Front/DefaultController.php
Executable file → Normal file
0
core/lib/Thelia/Core/Application.php
Executable file → Normal file
0
core/lib/Thelia/Core/Application.php
Executable file → Normal file
0
core/lib/Thelia/Core/Bundle/TheliaBundle.php
Executable file → Normal file
0
core/lib/Thelia/Core/Bundle/TheliaBundle.php
Executable file → Normal file
0
core/lib/Thelia/Core/Controller/ControllerResolver.php
Executable file → Normal file
0
core/lib/Thelia/Core/Controller/ControllerResolver.php
Executable file → Normal file
0
core/lib/Thelia/Core/DependencyInjection/Compiler/RegisterCouponConditionPass.php
Executable file → Normal file
0
core/lib/Thelia/Core/DependencyInjection/Compiler/RegisterCouponConditionPass.php
Executable file → Normal file
0
core/lib/Thelia/Core/DependencyInjection/Compiler/RegisterCouponPass.php
Executable file → Normal file
0
core/lib/Thelia/Core/DependencyInjection/Compiler/RegisterCouponPass.php
Executable file → Normal file
0
core/lib/Thelia/Core/DependencyInjection/Compiler/RegisterListenersPass.php
Executable file → Normal file
0
core/lib/Thelia/Core/DependencyInjection/Compiler/RegisterListenersPass.php
Executable file → Normal file
0
core/lib/Thelia/Core/DependencyInjection/Compiler/RegisterParserPluginPass.php
Executable file → Normal file
0
core/lib/Thelia/Core/DependencyInjection/Compiler/RegisterParserPluginPass.php
Executable file → Normal file
0
core/lib/Thelia/Core/DependencyInjection/Compiler/RegisterRouterPass.php
Executable file → Normal file
0
core/lib/Thelia/Core/DependencyInjection/Compiler/RegisterRouterPass.php
Executable file → Normal file
0
core/lib/Thelia/Core/DependencyInjection/Loader/XmlFileLoader.php
Executable file → Normal file
0
core/lib/Thelia/Core/DependencyInjection/Loader/XmlFileLoader.php
Executable file → Normal file
0
core/lib/Thelia/Core/DependencyInjection/Loader/schema/dic/config/thelia-1.0.xsd
Executable file → Normal file
0
core/lib/Thelia/Core/DependencyInjection/Loader/schema/dic/config/thelia-1.0.xsd
Executable file → Normal file
0
core/lib/Thelia/Core/Event/ActionEvent.php
Executable file → Normal file
0
core/lib/Thelia/Core/Event/ActionEvent.php
Executable file → Normal file
0
core/lib/Thelia/Core/Event/Cart/CartEvent.php
Executable file → Normal file
0
core/lib/Thelia/Core/Event/Cart/CartEvent.php
Executable file → Normal file
0
core/lib/Thelia/Core/Event/Cart/CartItemEvent.php
Executable file → Normal file
0
core/lib/Thelia/Core/Event/Cart/CartItemEvent.php
Executable file → Normal file
1
core/lib/Thelia/Core/Event/Customer/CustomerCreateOrUpdateEvent.php
Executable file → Normal file
1
core/lib/Thelia/Core/Event/Customer/CustomerCreateOrUpdateEvent.php
Executable file → Normal file
@@ -248,5 +248,4 @@ class CustomerCreateOrUpdateEvent extends CustomerEvent
|
||||
return $this->ref;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
0
core/lib/Thelia/Core/Event/Customer/CustomerEvent.php
Executable file → Normal file
0
core/lib/Thelia/Core/Event/Customer/CustomerEvent.php
Executable file → Normal file
0
core/lib/Thelia/Core/Event/Customer/CustomerLoginEvent.php
Executable file → Normal file
0
core/lib/Thelia/Core/Event/Customer/CustomerLoginEvent.php
Executable file → Normal file
0
core/lib/Thelia/Core/Event/DefaultActionEvent.php
Executable file → Normal file
0
core/lib/Thelia/Core/Event/DefaultActionEvent.php
Executable file → Normal file
0
core/lib/Thelia/Core/Event/Document/DocumentCreateOrUpdateEvent.php
Executable file → Normal file
0
core/lib/Thelia/Core/Event/Document/DocumentCreateOrUpdateEvent.php
Executable file → Normal file
0
core/lib/Thelia/Core/Event/Document/DocumentDeleteEvent.php
Executable file → Normal file
0
core/lib/Thelia/Core/Event/Document/DocumentDeleteEvent.php
Executable file → Normal file
0
core/lib/Thelia/Core/Event/Image/ImageCreateOrUpdateEvent.php
Executable file → Normal file
0
core/lib/Thelia/Core/Event/Image/ImageCreateOrUpdateEvent.php
Executable file → Normal file
0
core/lib/Thelia/Core/Event/Image/ImageDeleteEvent.php
Executable file → Normal file
0
core/lib/Thelia/Core/Event/Image/ImageDeleteEvent.php
Executable file → Normal file
0
core/lib/Thelia/Core/Event/Image/ImageEvent.php
Executable file → Normal file
0
core/lib/Thelia/Core/Event/Image/ImageEvent.php
Executable file → Normal file
@@ -65,6 +65,7 @@ class ModuleDeleteEvent extends ModuleEvent
|
||||
public function setDeleteData($delete_data)
|
||||
{
|
||||
$this->delete_data = $delete_data;
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
0
core/lib/Thelia/Core/Event/Order/OrderAddressEvent.php
Executable file → Normal file
0
core/lib/Thelia/Core/Event/Order/OrderAddressEvent.php
Executable file → Normal file
0
core/lib/Thelia/Core/Event/Order/OrderEvent.php
Executable file → Normal file
0
core/lib/Thelia/Core/Event/Order/OrderEvent.php
Executable file → Normal file
@@ -151,7 +151,6 @@ class ProductCombinationGenerationEvent extends ProductEvent
|
||||
$this->ean_code = $ean_code;
|
||||
|
||||
return $this;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getCombinations()
|
||||
|
||||
@@ -129,4 +129,4 @@ class TaxEvent extends ActionEvent
|
||||
{
|
||||
return $this->requirements;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -129,4 +129,4 @@ class TaxRuleEvent extends ActionEvent
|
||||
{
|
||||
return $this->taxList;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
0
core/lib/Thelia/Core/Event/TheliaEvents.php
Executable file → Normal file
0
core/lib/Thelia/Core/Event/TheliaEvents.php
Executable file → Normal file
0
core/lib/Thelia/Core/Event/UpdateFilePositionEvent.php
Executable file → Normal file
0
core/lib/Thelia/Core/Event/UpdateFilePositionEvent.php
Executable file → Normal file
0
core/lib/Thelia/Core/Event/UpdateSeoEvent.php
Executable file → Normal file
0
core/lib/Thelia/Core/Event/UpdateSeoEvent.php
Executable file → Normal file
0
core/lib/Thelia/Core/EventListener/ControllerListener.php
Executable file → Normal file
0
core/lib/Thelia/Core/EventListener/ControllerListener.php
Executable file → Normal file
2
core/lib/Thelia/Core/EventListener/ViewListener.php
Executable file → Normal file
2
core/lib/Thelia/Core/EventListener/ViewListener.php
Executable file → Normal file
@@ -115,7 +115,7 @@ class ViewListener implements EventSubscriberInterface
|
||||
{
|
||||
$request = $this->container->get('request');
|
||||
|
||||
if (null === $view = $request->attributes->get('_view')) {
|
||||
if (null === $request->attributes->get('_view')) {
|
||||
$request->attributes->set('_view', $this->findView($request));
|
||||
}
|
||||
|
||||
|
||||
0
core/lib/Thelia/Core/Factory/ActionEventFactory.php
Executable file → Normal file
0
core/lib/Thelia/Core/Factory/ActionEventFactory.php
Executable file → Normal file
5
core/lib/Thelia/Core/HttpFoundation/Request.php
Executable file → Normal file
5
core/lib/Thelia/Core/HttpFoundation/Request.php
Executable file → Normal file
@@ -34,11 +34,6 @@ use Symfony\Component\HttpFoundation\Request as BaseRequest;
|
||||
class Request extends BaseRequest
|
||||
{
|
||||
|
||||
private $excludeContent = array(
|
||||
'username',
|
||||
'password'
|
||||
);
|
||||
|
||||
public function getProductId()
|
||||
{
|
||||
return $this->get("product_id");
|
||||
|
||||
0
core/lib/Thelia/Core/HttpFoundation/Session/Session.php
Executable file → Normal file
0
core/lib/Thelia/Core/HttpFoundation/Session/Session.php
Executable file → Normal file
0
core/lib/Thelia/Core/Security/Authentication/AdminUsernamePasswordFormAuthenticator.php
Executable file → Normal file
0
core/lib/Thelia/Core/Security/Authentication/AdminUsernamePasswordFormAuthenticator.php
Executable file → Normal file
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user