Skip to main content
Joachim's blog

Main navigation

  • Home
  • About

Breadcrumb

  1. Home

wtf

By joachim, Wed, 30/06/2010 - 14:19

Using Constants For Permission Names: WHY?

I keep seeing this sort of thing in so many modules:

define("MY_MODULE_PERM_ACCESS_WIDGETS", 'access widgets');
// Names changed to protect the guilty ;)

Am I missing something, or is this utterly pointless?

Tags

  • drupal
  • code style
  • drupal planet
  • wtf
By joachim, Fri, 15/01/2010 - 14:37

Files Aren't Visible From All Domains Of A Site

I had a fun afternoon a few months back when all the imagecache images broke on a site I'd just taken live. I've just figured it out, so I'm telling you about it.

This was the situation:

  • subsite.client.com was where I was developing the site, one of a family of multisites.
  • subsite.com was a parked domain that went to just this site. It was this I'd just pointed to the IP of the box and that wasn't showing any images.

On the development domain, all worked fine. On the subsite domain, nothing.

Tags

  • drupal
  • 5.x
  • 6.x
  • multisite
  • drupal planet
  • wtf
  • fix
  • is this a bug?
  • note to self
wtf

Frequent tags

  • Drupal Code Builder (9)
  • git (7)
  • module builder (6)
  • 6.x (5)
  • drupal commerce (4)
  • Drush (3)
  • Composer (3)
  • development (3)
  • Entity API (3)
  • Field API (3)
  • patching (3)
  • developer tools (2)
  • Rector (2)
  • wtf (2)
  • contributing code (2)
  • code style (2)
  • contrib module (2)
  • maintaining projects (2)
  • drupal.org (2)
  • debugging (2)
  • multisite (2)
  • tests (2)
  • core (2)
  • issue queue (2)
  • Drupal core (2)
  • modules (2)
  • roadmap (2)
  • 7.x (2)
Powered by Drupal