We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c05e965 + ceeb6ae commit 76fd2e4Copy full SHA for 76fd2e4
pi.gist.php
@@ -8,15 +8,15 @@ class Plugin_gist extends Plugin {
8
'author_url' => 'http://jackmcdade.com'
9
);
10
11
- static public function __callStatic($method, $args) {
+ public function __call($method, $args) {
12
return "<script src=\"http://gist.github.com/{$method}.js\"></script>";
13
}
14
15
public function index() {
16
- $id = $this->fetchParam('id', '');
17
- $file = $this->fetchParam('file', '');
+ $id = $this->fetchParam('id', '');
+ $file = $this->fetchParam('file', '');
18
19
return "<script src=\"http://gist.github.com/{$id}.js" . ($file == '' ? '' : '?file=' . $file) . "\"></script>";
20
21
22
-}
+}
0 commit comments