Skip to content

Instantly share code, notes, and snippets.

View EvaldasUzkuras's full-sized avatar

Evaldas Užkuras EvaldasUzkuras

  • Lithuania, Kaunas
View GitHub Profile
@EvaldasUzkuras
EvaldasUzkuras / Tools.php
Created June 12, 2014 07:18
Turn off automatic language detection - Prestashop
<?php
class Tools extends ToolsCore
{
/**
* Change language in cookie while clicking on a flag
*
* @return string iso code
*/
public static function setCookieLanguage($cookie = null)
@EvaldasUzkuras
EvaldasUzkuras / drupal-deploy.php
Last active December 19, 2015 08:49 — forked from krisnoble/deploy.php
Drupal deploy script
<?php
date_default_timezone_set('Europe/Vilnius'); // Set this to your local timezone - http://www.php.net/manual/en/timezones.php
/**
* The root directory where the repos live.
*
* @var string
*/
$root_dir = '/your/root/dir/';