Skip to content

Instantly share code, notes, and snippets.

View enzolutions's full-sized avatar
:octocat:

enzo - Eduardo Garcia enzolutions

:octocat:
View GitHub Profile
<?php
namespace Drupal\Blog\Controller;
use Drupal\Core\Controller\ControllerBase;
use Drupal\Core\DependencyInjection\ContainerInjectionInterface;
use Drupal\Core\Template\TwigEnvironment;
class DefaultController extends ControllerBase implements ContainerInjectionInterface {
@enzolutions
enzolutions / gist:3779954
Created September 25, 2012 04:16
Config CS review
diff --git a/core/lib/Drupal/Core/Config/Config.php b/core/lib/Drupal/Core/Config/Config.php
index 538ab6d..85a00c9 100644
--- a/core/lib/Drupal/Core/Config/Config.php
+++ b/core/lib/Drupal/Core/Config/Config.php
@@ -83,6 +83,9 @@ class Config {
/**
* Initializes a configuration object.
+ *
+ * @return Drupal\Core\Config\Config
@enzolutions
enzolutions / gist:3503705
Created August 28, 2012 20:18
notes_for_richard
Lunes
gsinfo gardens --name=sm gardens --verify
-- nid
-- name
--db
--url
--verify=true
Master:
diff --git a/plupload.module b/plupload.module
index 6dbbddd..3249bcb 100644
--- a/plupload.module
+++ b/plupload.module
@@ -288,7 +288,7 @@ function plupload_library() {
'runtimes' => 'html5,flash,html4',
'url' => url('plupload-handle-uploads', array('query' => array('plupload_token' => drupal_get_token('plupload-handle-uploads')))),
'max_file_size' => file_upload_max_size() . 'b',
- 'chunk_size' => '1mb',
+ 'chunk_size' => parse_size(ini_get('post_max_size')),