Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #202 from DustyReagan/e_modifier_deprecated_fix

Fixed "The /e modifier is deprecated" error.
  • Loading branch information...
commit 10371153a8879f776814461e5298a61412344132 2 parents a361018 + 2950c78
@jmathai authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  EpiTwitter.php
View
2  EpiTwitter.php
@@ -86,7 +86,7 @@ public function __call($name, $params = null/*, $username, $password*/)
$parts = explode('_', $name);
$method = strtoupper(array_shift($parts));
$parts = implode('_', $parts);
- $endpoint = '/' . preg_replace('/[A-Z]|[0-9]+/e', "'/'.strtolower('\\0')", $parts) . '.json';
+ $endpoint = '/' . preg_replace_callback('/[A-Z]|[0-9]+/', function($m){ return '/' . strtolower($m[0]);}, $parts) . '.json';
/* HACK: this is required for list support that starts with a user id */
$endpoint = str_replace('//','/',$endpoint);
$args = !empty($params) ? array_shift($params) : null;
Please sign in to comment.
Something went wrong with that request. Please try again.