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
# | |
# Load plugins | |
# | |
load 'deploy' if respond_to?(:namespace) # cap2 differentiator | |
require 'railsless-deploy' | |
Dir['vendor/gems/*/recipes/*.rb','vendor/plugins/*/recipes/*.rb'].each { |plugin| load(plugin) } | |
load 'config/deploy' # remove this line to skip loading any of the default tasks |
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 -urN --exclude=.piston.yml --exclude=.git --exclude=.svn /Users/Will/Sites/justsold/.twitter.tmp/Authenticator/LoginForm.php /Users/Will/Sites/justsold/twitter/Authenticator/LoginForm.php | |
--- /Users/Will/Sites/justsold/.twitter.tmp/Authenticator/LoginForm.php 2012-06-19 19:13:19.000000000 +1200 | |
+++ /Users/Will/Sites/justsold/twitter/Authenticator/LoginForm.php 2012-06-12 20:39:03.000000000 +1200 | |
@@ -1,6 +1,7 @@ | |
<?php | |
class TwitterLoginForm extends LoginForm { | |
+ | |
protected $authenticator_class = 'TwitterAuthenticator'; | |
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/twitter/Controllers/Callback.php b/twitter/Controllers/Callback.php | |
index 38fa88c..33f9ab4 100644 | |
--- a/twitter/Controllers/Callback.php | |
+++ b/twitter/Controllers/Callback.php | |
@@ -39,10 +39,11 @@ class TwitterCallback extends Controller { | |
public function FinishTwitter($request) { | |
$token = SecurityToken::inst(); | |
if(!$token->checkRequest($request)) return $this->httpError(400); | |
- if($this->CurrentMember()->TwitterID) { | |
+ |
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 -urN --exclude=.piston.yml --exclude=.git --exclude=.svn /Users/Will/Sites/justsold/.facebook.tmp/Authenticator/LoginForm.php /Users/Will/Sites/justsold/facebook/Authenticator/LoginForm.php | |
--- /Users/Will/Sites/justsold/.facebook.tmp/Authenticator/LoginForm.php 2012-06-19 19:43:58.000000000 +1200 | |
+++ /Users/Will/Sites/justsold/facebook/Authenticator/LoginForm.php 2012-06-12 20:38:27.000000000 +1200 | |
@@ -1,6 +1,7 @@ | |
<?php | |
class FacebookLoginForm extends LoginForm { | |
+ | |
protected $authenticator_class = 'FacebookAuthenticator'; | |
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 | |
/** | |
* Loads tweets onto a SilverStripe object through a XML file rather than the | |
* web API. | |
* | |
* Usage: | |
* | |
* // PHP | |
* function Tweets() { |
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_value auto_prepend_file header.php | |
php_value auto_append_file footer.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
--- | |
Name: app | |
After: framework/routes#coreroutes | |
--- | |
Director: | |
rules: | |
'dev': 'DevelopmentAdmin' | |
'sitemap.xml': 'GoogleSitemap' | |
'$Action' : 'BaseController' |
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
module.exports = function(grunt) { | |
grunt.initConfig({ | |
lint: { | |
all: ['wcc/js/*.src.js'] | |
}, | |
meta: { | |
banner: '/*! DNA Designed Communications Limited | Copyright 2012 */' | |
}, | |
less: { | |
development: { |
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 | |
class HTTPisBorkedTest extends SapphireTest { | |
public function testAbsoluteUrls() { | |
// should leave external urls along | |
$this->assertEquals('<a href="http://external.com">', HTTP::absoluteURLs('<a href="http://external.com">')); | |
} | |
} |
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
set :composer_bin, false | |
set :composer_options, "--no-scripts --verbose" | |
namespace :composer do | |
desc "Gets composer and installs it" | |
task :get, :roles => :app, :except => { :no_release => true } do | |
if remote_file_exists?("#{previous_release}/composer.phar") | |
pretty_print "--> Copying Composer from previous release" | |
run "#{try_sudo} sh -c 'cp #{previous_release}/composer.phar #{latest_release}/'" | |
puts_ok |