Fix path to toggleqvitter.js

Plugin::path() needs its argument to actually be a file that exists
relative to the plugin base directory so that it can determine
whether the plugin is rooted in / or /local.

So don't include HTTP GET args in the path() argument--append them after
getting the value back from path().
This commit is contained in:
Joshua Judson Rosen 2014-12-04 22:48:55 -05:00
parent ecc0aa8d36
commit 751a9503d7

View File

@ -267,7 +267,7 @@ class QvitterPlugin extends Plugin {
var qvitterEnabled = '.$qvitter_enabled.'; var qvitterEnabled = '.$qvitter_enabled.';
var qvitterAllLink = \''.common_local_url('all', array('nickname' => $user->nickname)).'\'; var qvitterAllLink = \''.common_local_url('all', array('nickname' => $user->nickname)).'\';
'); ');
$action->script($this->path('js/toggleqvitter.js?changed='.date('YmdHis',filemtime(QVITTERDIR.'/js/toggleqvitter.js')))); $action->script($this->path('js/toggleqvitter.js').'?changed='.date('YmdHis',filemtime(QVITTERDIR.'/js/toggleqvitter.js')));
} }
} }