more more dynamic plugin directory lookup

This commit is contained in:
Hannes Mannerheim 2014-11-28 15:54:23 +01:00
parent 79ba613042
commit 179a49cfa1
2 changed files with 2 additions and 2 deletions

View File

@ -718,7 +718,7 @@ class QvitterPlugin extends Plugin {
if($title == 'faq') {
$faq = file_get_contents(INSTALLDIR.'/plugins/Qvitter/doc/faq.html');
$faq = file_get_contents(QVITTERDIR.'/doc/faq.html');
$faq = str_replace('{instance-name}',common_config('site','name'),$faq);
$faq = str_replace('{instance-url}',common_config('site','server'),$faq);
$faq = str_replace('{instance-url-with-protocol}',common_path('', true),$faq);

View File

@ -398,7 +398,7 @@ $('#logout').click(function(){
$('#faq-link').click(function(){
popUpAction('popup-faq', window.siteTitle + ' ' + window.sL.FAQ,'<div id="faq-container"></div>',false);
$.get(window.siteInstanceURL + 'plugins/Qvitter/doc/faq.html', function(data){
$.get(window.fullUrlToThisQvitterApp + 'doc/faq.html', function(data){
if(data) {
var faqHtml = data;
faqHtml = faqHtml.replace(/{instance-name}/g,window.siteTitle);