Skip to content

Commit a2004ea

Browse files
committed
Add back getCfg
1 parent cf2ed11 commit a2004ea

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

libraries/cms/application/cms.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,22 @@ protected function checkUserRequireReset($option, $view, $layout, $tasks)
396396
}
397397
}
398398

399+
/**
400+
* Gets a configuration value.
401+
*
402+
* @param string $varname The name of the value to get.
403+
* @param string $default Default value to return
404+
*
405+
* @return mixed The user state.
406+
*
407+
* @since 3.2
408+
* @deprecated 5.0 Use get() instead
409+
*/
410+
public function getCfg($varname, $default = null)
411+
{
412+
return $this->get($varname, $default);
413+
}
414+
399415
/**
400416
* Gets the client id of the current running application.
401417
*

0 commit comments

Comments
 (0)