Skip to content

Commit 76fd2e4

Browse files
committedJan 27, 2015
Merge pull request #6 from brettdewoody/master
Fix issue #4 where {{ gist:id }} does not work.
2 parents c05e965 + ceeb6ae commit 76fd2e4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎pi.gist.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ class Plugin_gist extends Plugin {
88
'author_url' => 'http://jackmcdade.com'
99
);
1010

11-
static public function __callStatic($method, $args) {
11+
public function __call($method, $args) {
1212
return "<script src=\"http://gist.github.com/{$method}.js\"></script>";
1313
}
1414

1515
public function index() {
16-
$id = $this->fetchParam('id', '');
17-
$file = $this->fetchParam('file', '');
16+
$id = $this->fetchParam('id', '');
17+
$file = $this->fetchParam('file', '');
1818

1919
return "<script src=\"http://gist.github.com/{$id}.js" . ($file == '' ? '' : '?file=' . $file) . "\"></script>";
2020
}
2121

22-
}
22+
}

0 commit comments

Comments
 (0)