Skip to content

Instantly share code, notes, and snippets.

View bronius's full-sized avatar

Bronius Motekaitis bronius

View GitHub Profile
@bronius
bronius / dpatch.py
Created April 18, 2017 14:42 — forked from nvahalik/dpatch.py
Drupal patch maker
#!/usr/local/bin/python
import json
import re
import urllib2
import subprocess
class Issue:
def __init__(self, number):
self.number = number
@bronius
bronius / gist:6371145
Last active December 21, 2015 21:49 — forked from neclimdul/gist:6370758
One way around Drupal 7 Ubercart 7.x-3.5 cache anonymous cart (in IE?). I found that 'cart' was always getting added to Drupal's cache_page table. Doesn't it make sense that it *not*? In fact, it broke checkout for our anonymous users. Try it out, let me know if it works for you. Thanks @neclimdul! Note: the fix is just the 'cart' -> drupal_page…
/**
* Implements hook_init().
*/
function uc_cart_init() {
global $conf;
$conf['i18n_variables'][] = 'uc_cart_breadcrumb_text';
$conf['i18n_variables'][] = 'uc_cart_help_text';
$conf['i18n_variables'][] = 'uc_continue_shopping_text';
// Don't cache any cart of checkout pages.