more more dynamic plugin directory lookup
This commit is contained in:
parent
79ba613042
commit
179a49cfa1
|
@ -718,7 +718,7 @@ class QvitterPlugin extends Plugin {
|
||||||
|
|
||||||
if($title == 'faq') {
|
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-name}',common_config('site','name'),$faq);
|
||||||
$faq = str_replace('{instance-url}',common_config('site','server'),$faq);
|
$faq = str_replace('{instance-url}',common_config('site','server'),$faq);
|
||||||
$faq = str_replace('{instance-url-with-protocol}',common_path('', true),$faq);
|
$faq = str_replace('{instance-url-with-protocol}',common_path('', true),$faq);
|
||||||
|
|
|
@ -398,7 +398,7 @@ $('#logout').click(function(){
|
||||||
|
|
||||||
$('#faq-link').click(function(){
|
$('#faq-link').click(function(){
|
||||||
popUpAction('popup-faq', window.siteTitle + ' ' + window.sL.FAQ,'<div id="faq-container"></div>',false);
|
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) {
|
if(data) {
|
||||||
var faqHtml = data;
|
var faqHtml = data;
|
||||||
faqHtml = faqHtml.replace(/{instance-name}/g,window.siteTitle);
|
faqHtml = faqHtml.replace(/{instance-name}/g,window.siteTitle);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user