Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nie zawsze działa "phpui.custom_templates_dir" #1499

Open
seba11 opened this issue Jun 5, 2019 · 2 comments
Open

Nie zawsze działa "phpui.custom_templates_dir" #1499

seba11 opened this issue Jun 5, 2019 · 2 comments

Comments

@seba11
Copy link
Contributor

@seba11 seba11 commented Jun 5, 2019

Mam ustawiony phpui.custom_templates_dir.
Cześć szablonów ładuje się custom-owych, a część z default. Przykładowo.
nodeinfo.html ładuje custom
invoicereport-ext.html ładuje default

Struktura plików jest OK, bo jak usunę domyślny szablon to ładuje ten własny.

ls templates/netarea/ -R
templates/netarea/:
invoice  node  print

templates/netarea/invoice:
invoicereport-ext.html

templates/netarea/node:
nodeinfobox.html  nodeinfo.html

templates/netarea/print:
printcustomerlist.html  printcustomerlist-sendingbook.html  printindex.html

Kolejność w gettemplatedir() wygląda zawsze tak samo:

array(4) {
  [0]=>
  string(1) "/"
  [1]=>
  string(36) "/var/www/html/lms/templates/netarea/"
  [2]=>
  string(36) "/var/www/html/lms/templates/default/"
  [3]=>
  string(28) "/var/www/html/lms/templates/"
}

Co ciekawe jak w module invoicereport zamiast
$SMARTY->display('invoice/invoicereport-ext.html');
zrobiłem
$SMARTY->display('file:invoice/invoicereport-ext.html');
to zaczął ładować custom template. Identyczny skutek daje ustawienie
$SMARTY->default_resource_type = "file";

Nie wiem czy to błąd SMARTY czy trzeba poprawiać LMSa?

@seba11

This comment has been minimized.

Copy link
Contributor Author

@seba11 seba11 commented Jun 5, 2019

Jeszcze dla formalności.

dbschversion => "2019042400"
v_errors => null
smarty_version => "3.1.33"
logid => "1"
lmsdbv => "2019042400"
hostname => "74d05f71391f"
lmsv => "24"
lmsvr => ""
dberrors => Array (0)
dbdebug => false
popup => false
module => "invoicereport"

więc niby błąd #547 nie dotyczy.

@chilek

This comment has been minimized.

Copy link
Collaborator

@chilek chilek commented Jun 6, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.