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:
parent
ecc0aa8d36
commit
751a9503d7
|
@ -267,7 +267,7 @@ class QvitterPlugin extends Plugin {
|
|||
var qvitterEnabled = '.$qvitter_enabled.';
|
||||
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')));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user