From e6d7e71175e388b7d5e356eebb9ff350c941026e Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Sat, 28 May 2011 01:47:59 +1000 Subject: renamed "homepage" directory to "themes" --- mod.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'mod.php') diff --git a/mod.php b/mod.php index b6f01ec6..5f655bcb 100644 --- a/mod.php +++ b/mod.php @@ -317,17 +317,17 @@ echo Element('page.html', Array( 'config'=>$config, 'title'=>'No theme', - 'body'=>'

Successfully stopped using any themes. You\'ll have to create a homepage manually if you want one.

', + 'body'=>'

Successfully stopped using all themes.

', 'mod'=>true ) ); } elseif(preg_match('/^\/themes(\/(\w+))?$/', $query, $match)) { if($mod['type'] < $config['mod']['themes']) error($config['error']['noaccess']); - if(!is_dir($config['dir']['homepage'])) - error('Homepage directory doesn\'t exist!'); - if(!$dir = opendir($config['dir']['homepage'])) - error('Cannot open homepage directory; check permissions.'); + if(!is_dir($config['dir']['themes'])) + error('Themes directory doesn\'t exist!'); + if(!$dir = opendir($config['dir']['themes'])) + error('Cannot open themes directory; check permissions.'); if(isset($match[2])) { $_theme = &$match[2]; @@ -406,7 +406,7 @@ // Scan directory for themes $themes = Array(); while($file = readdir($dir)) { - if($file[0] != '.' && is_dir($config['dir']['homepage'] . '/' . $file)) { + if($file[0] != '.' && is_dir($config['dir']['themes'] . '/' . $file)) { $themes[] = $file; } } @@ -436,7 +436,7 @@ '' . '' . 'Thumbnail' . - '' . + '' . '' . '' . 'Actions' . -- cgit v1.3