cleanup
This commit is contained in:
parent
ba2cc3ec40
commit
0d4af6419a
10
owark.php
10
owark.php
|
@ -128,14 +128,6 @@ if (!class_exists("Owark")) {
|
|||
self::__construct();
|
||||
}
|
||||
|
||||
function archives_dir() {
|
||||
if (defined('OWARK_ARCHIVES_DIR')) {
|
||||
return OWARK_ARCHIVES_DIR;
|
||||
} else {
|
||||
return dirname(__FILE__) . '/archives';
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Check we have everything we need...
|
||||
*
|
||||
|
@ -259,7 +251,7 @@ if (!class_exists("Owark")) {
|
|||
|
||||
// Check if we have an archive subdirectory
|
||||
$archives_dir = archives_dir();
|
||||
print_r_log($archives_dir);
|
||||
print_r_log("archives_dir: $archives_dir");
|
||||
if (!is_dir($archives_dir)) {
|
||||
@mkdir($archives_dir);
|
||||
if (!is_dir($archives_dir)) {
|
||||
|
|
Loading…
Reference in New Issue