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

getConfigVariable() error #286

Closed
ncmendes opened this issue Sep 8, 2016 · 2 comments
Closed

getConfigVariable() error #286

ncmendes opened this issue Sep 8, 2016 · 2 comments

Comments

@ncmendes
Copy link

ncmendes commented Sep 8, 2016

From version 3.1.28 to 3.1.30 I get this error:

File:
\sysplugins\smarty_internal_extension_handler.php

Line:
85

Message:
property 'config_variable' does not exist.

Example code (that have been running ok for ages):

$site->view->configLoad('language.conf', $site->language->active);
$int_phrase001 = $site->view->getConfigVariable('phrase001');

@uwetews
Copy link
Contributor

uwetews commented Sep 8, 2016

Please note that the official documented api method is getConfigVars().
see http://www.smarty.net/docs/en/api.get.config.vars.tpl

however I implemented a wrapper for the removed method getConfigVariable().
This is fixed in the master branch

@uwetews uwetews closed this as completed Sep 9, 2016
@ncmendes
Copy link
Author

I missed that I was not using the official api method even after having consulting the docs and not noticing it. With getConfigVars() everything is working as expected again. Thanks!

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

No branches or pull requests

2 participants