Skip to content

Commit

Permalink
removing theme related code
Browse files Browse the repository at this point in the history
  • Loading branch information
dogmatic69 committed Nov 23, 2012
1 parent e84a258 commit eced0c6
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions Core/Installer/Lib/InstallerLib.php
@@ -1,7 +1,7 @@
<?php
App::uses('ConnectionManager', 'Model');
App::uses('File', 'Utility');

class InstallerLib {
/**
* minimum php version number required to run infinitas
Expand Down Expand Up @@ -512,22 +512,4 @@ public function __databaseVersion($connectionDetails) {
public static function localTheme($theme) {
return ClassRegistry::init('Themes.Theme')->install($theme);
}

/**
* find theme dirs for the plugin passed or in the app dir
*
* @param string $plugin the plugin to check in
*
* @return type
*/
public static function findThemes($plugin = null) {
$path = InfinitasTheme::themePath($plugin);

if(!is_dir($path)) {
return array();
}

$Folder = new Folder($path);
return current($Folder->read());
}
}

0 comments on commit eced0c6

Please sign in to comment.