Skip to content

Commit

Permalink
Fixed to work with PHP 5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
James Hamilton committed Feb 11, 2014
1 parent 1ad847d commit e0e2f20
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -14,7 +14,7 @@ Plugin adds https://github.com/tfrce/thedaywefightback.js to your Drupal pages.

## Compatibility

This is a Drupal 7.x module.
This is a Drupal 7.x module, requires PHP >= 5.2.

## Installation

Expand Down
Binary file modified tdwfb.zip
Binary file not shown.
1 change: 1 addition & 0 deletions tdwfb/tdwfb.info
Expand Up @@ -2,3 +2,4 @@ name = The Day We Fight Back
description = Adds thedaywefightback.js banner to your site
core = 7.x
configure = admin/config/content/tdwfb
php = 5.2
2 changes: 1 addition & 1 deletion tdwfb/tdwfb.module
Expand Up @@ -15,7 +15,7 @@ function tdwfb_page_alter(&$page) {
if ($callOnly == 1) $config['callOnly'] = true;
if ($overrideLocation != 'none') $config['overrideLocation'] = $overrideLocation;

$json_config = json_encode($config, JSON_FORCE_OBJECT);
$json_config = json_encode((object)$config);
$js =<<<EOS
<!--[if !(lt IE 8)]><!-->
<script type="text/javascript">
Expand Down

0 comments on commit e0e2f20

Please sign in to comment.