mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Making themePath work with E_STRICT.
This commit is contained in:
parent
2020675078
commit
ef6e01f21f
1 changed files with 2 additions and 2 deletions
|
@ -688,8 +688,8 @@ class App extends Object {
|
|||
* @param string $theme lower_cased theme name to find the path of.
|
||||
* @return string full path to the theme.
|
||||
*/
|
||||
function themePath($theme) {
|
||||
$_this =& App::getInstance();
|
||||
public static function themePath($theme) {
|
||||
$_this = App::getInstance();
|
||||
$themeDir = 'themed' . DS . Inflector::underscore($theme);
|
||||
for ($i = 0, $length = count($_this->views); $i < $length; $i++) {
|
||||
if (is_dir($_this->views[$i] . $themeDir)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue