replace deprecated Minz_Session::param method and use typed version Minz_Session::paramString instead
This commit is contained in:
parent
77bf1776a9
commit
e3b5e203a1
2 changed files with 4 additions and 4 deletions
|
|
@ -6,7 +6,7 @@ class CustomCSSExtension extends Minz_Extension {
|
|||
public function init() {
|
||||
$this->registerTranslates();
|
||||
|
||||
$current_user = Minz_Session::param('currentUser');
|
||||
$current_user = Minz_Session::paramString('currentUser');
|
||||
$filename = 'style.' . $current_user . '.css';
|
||||
$filepath = join_path($this->getPath(), 'static', $filename);
|
||||
|
||||
|
|
@ -18,7 +18,7 @@ class CustomCSSExtension extends Minz_Extension {
|
|||
public function handleConfigureAction() {
|
||||
$this->registerTranslates();
|
||||
|
||||
$current_user = Minz_Session::param('currentUser');
|
||||
$current_user = Minz_Session::paramString('currentUser');
|
||||
$filename = 'style.' . $current_user . '.css';
|
||||
$staticPath = join_path($this->getPath(), 'static');
|
||||
$filepath = join_path($staticPath, $filename);
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ class CustomJSExtension extends Minz_Extension {
|
|||
public function init() {
|
||||
$this->registerTranslates();
|
||||
|
||||
$current_user = Minz_Session::param('currentUser');
|
||||
$current_user = Minz_Session::paramString('currentUser');
|
||||
$filename = 'script.' . $current_user . '.js';
|
||||
$filepath = join_path($this->getPath(), 'static', $filename);
|
||||
|
||||
|
|
@ -18,7 +18,7 @@ class CustomJSExtension extends Minz_Extension {
|
|||
public function handleConfigureAction() {
|
||||
$this->registerTranslates();
|
||||
|
||||
$current_user = Minz_Session::param('currentUser');
|
||||
$current_user = Minz_Session::paramString('currentUser');
|
||||
$filename = 'script.' . $current_user . '.js';
|
||||
$staticPath = join_path($this->getPath(), 'static');
|
||||
$filepath = join_path($staticPath, $filename);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue