Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fixes #76 custom php code replaced with getPayload() #77

Merged
merged 1 commit into from

2 participants

@thousandsofthem

Fixes #76 custom php code replaced with getPayload()

@paddyforan paddyforan merged commit e85b12a into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 10, 2012
  1. @thousandsofthem
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 8 deletions.
  1. +2 −8 _includes/worker/start/first-worker/php/worker.md
View
10 _includes/worker/start/first-worker/php/worker.md
@@ -1,13 +1,7 @@
<div class="php">{% highlight php %}
<?php
-$payload = null;
-global $argv;
-foreach($argv as $k => $v) {
- if (empty($argv[$k+1])) continue;
- if ($v == "-payload" && file_exists($argv[$k+1])) {
- $payload = json_decode(file_get_contents($argv[$k+1]));
- }
-}
+
+$payload = getPayload();
$max = 100;
Something went wrong with that request. Please try again.