It makes more sense to use the type of page you have for the type, and it prepare published to be a state instead of a type
15 lines
No EOL
492 B
PHP
15 lines
No EOL
492 B
PHP
<?php defined('KOBLOG') or die('Koblog CMS.');
|
|
|
|
// ============================================================================
|
|
// Variables
|
|
// ============================================================================
|
|
|
|
global $site;
|
|
|
|
// ============================================================================
|
|
// Main
|
|
// ============================================================================
|
|
|
|
if ($site->databaseVersion() < 2) {
|
|
KoblogUpdater::upgradeArticlesToPageTypes();
|
|
} |