Go to http://github.com/hugowetterberg/Dev-Pull instead
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Had to reimplement the update_sql function to be | |
* able to pass serialized php into the db, otherwise | |
* the {}:s were prefixed as tables. | |
* | |
* This implementation is a merge of update_sql and | |
* db_query to get the near-actual executed sql for the log. | |
* | |
* Two sql-statements have to be generated, one with the | |
* table prefixes for execution and one with the enclosing |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Update that changes the CCK field field_info_url | |
* from a text field to a link field without data loss | |
* | |
* @return void | |
*/ | |
function hook_update_1() { | |
$ret = array(); | |
// Global settings |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
s/[[:space:]]*$// | |
s/\$Id: .* Exp \$/$Id$/g | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From a272fe19a5135b0256bb5af3210d89067fcfa257 Mon Sep 17 00:00:00 2001 | |
From: Hugo Wetterberg <[email protected]> | |
Date: Fri, 6 Feb 2009 11:09:02 +0100 | |
Subject: [PATCH] HACKED CORE! | |
It's now possible to set a default fallback language that's different from the default language. | |
--- | |
includes/language.inc | 19 ++++++++++++++----- | |
1 files changed, 14 insertions(+), 5 deletions(-) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
repo="`pwd`" | |
export GIT_DIR="$repo" | |
wd="`dirname $repo`" | |
echo "$repo" | |
echo "$wd" | |
cd "$wd" | |
git merge master | |
git submodule init |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/sites/all/modules/coder/includes/coder_style.inc b/sites/all/modules/coder/includes/coder_style.inc | |
index 5330b6c..2a52b0f 100644 | |
--- a/sites/all/modules/coder/includes/coder_style.inc | |
+++ b/sites/all/modules/coder/includes/coder_style.inc | |
@@ -47,8 +47,8 @@ function coder_style_reviews() { | |
), | |
array( | |
'#type' => 'regex', | |
- '#value' => '(\.\s\'\'|\'\'\s\.|\.\s""|\.\s"")', | |
- '#warning' => 'string concatenation should be formatted without a space separating the operators (dot .) and a quote', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From b969757d5d6fb52f66560eea10a7299f1d81729b Mon Sep 17 00:00:00 2001 | |
From: Hugo Wetterberg <[email protected]> | |
Date: Tue, 24 Feb 2009 12:58:51 +0100 | |
Subject: [PATCH] Modified OAuth.php so that we can support consumer request according to the draft "Using OAuth for Consumer Requests" http://oauth.googlecode.com/svn/spec/ext/consumer_request/1.0/drafts/2/spec.html | |
--- | |
lib/OAuth.php | 15 ++++++++++----- | |
1 files changed, 10 insertions(+), 5 deletions(-) | |
diff --git a/lib/OAuth.php b/lib/OAuth.php |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
mb_internal_encoding("UTF-8"); | |
$desc = <<<TEXT | |
<p>Lines of text SHOULD NOT be longer than 75 octets, (och hör på den) excluding the line break. Long content lines SHOULD be split into a multiple line representations using a line "folding" technique.</p> | |
That is, a long line can be split between any two characters by inserting a CRLF | |
immediately followed by a single linear white space character (i.e., | |
SPACE, <b>US-ASCII</b> decimal 32 or HTAB, US-ASCII decimal 9). Any sequence | |
of CRLF followed immediately by a single linear white space character | |
is ignored (i.e., removed) when processing the content type. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Access checking for comments | |
*/ | |
function _comment_resource_access($op='view', $args=array()) { | |
if (user_access('administer comments')) { | |
return TRUE; | |
} | |
if ($op=='create') { | |
$comment = (object)$args[0]; |
OlderNewer