Skip to content

Instantly share code, notes, and snippets.

View mahono's full-sized avatar

Matthias Nothhaft mahono

  • Berlin, Germany
  • 22:48 (UTC +02:00)
View GitHub Profile
<?php
// some geo locations
$brandenburgerTor = array(
'lat' => 52.516455903398,
'lon' => 13.380317687988
);
$friedrichstrasse = array(
'lat' => 52.519772437396,
@mahono
mahono / gist:580469
Created September 15, 2010 09:24
make __() faster
class myI18N extends sfI18N
{
public function __($string, $args = array(), $catalogue = 'messages')
{
$string = (string) $string;
if ($this->cache)
{
// the arguments stuff should probably be removed as this will cause
// a lot of cache entries