forked from leftypol/leftypol
a lot more improvements
This commit is contained in:
parent
ac2837c620
commit
a610458720
40 changed files with 986 additions and 271 deletions
|
@ -44,9 +44,9 @@
|
|||
$theme['build_function'] = 'basic_build';
|
||||
$theme['install_callback'] = 'build_install';
|
||||
|
||||
if(!function_exists('build_install')) {
|
||||
if (!function_exists('build_install')) {
|
||||
function build_install($settings) {
|
||||
if(!is_numeric($settings['no_recent']) || $settings['no_recent'] < 0)
|
||||
if (!is_numeric($settings['no_recent']) || $settings['no_recent'] < 0)
|
||||
return Array(false, '<strong>' . utf8tohtml($settings['no_recent']) . '</strong> is not a non-negative integer.');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
public static function build($action, $settings) {
|
||||
global $config;
|
||||
|
||||
if($action == 'all' || $action == 'news')
|
||||
if ($action == 'all' || $action == 'news')
|
||||
file_write($config['dir']['home'] . $settings['file'], Basic::homepage($settings));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue