function flush_all()
 {
     bb_log_deprecated('class::function', __CLASS__ . '::' . __FUNCTION__, 'no alternative');
     return true;
 }
Example #2
0
     */
    $deprecated_constants = array('BBPATH' => 'BB_PATH', 'BBINC' => 'BB_INC', 'BBLANG' => 'BB_LANG', 'BBLANGDIR' => 'BB_LANG_DIR', 'BBPLUGINDIR' => 'BB_PLUGIN_DIR', 'BBPLUGINURL' => 'BB_PLUGIN_URL', 'BBTHEMEDIR' => 'BB_THEME_DIR', 'BBTHEMEURL' => 'BB_THEME_URL', 'BBHASH' => 'BB_HASH');
    foreach ($deprecated_constants as $old => $new) {
        // only define if new one is defined
        if (!defined($old) && defined($new)) {
            define($old, constant($new));
        } elseif (defined($old)) {
            bb_log_deprecated('constant', $old, $new);
        }
    }
    $deprecated_constants = array('USER_BBDB_NAME' => 'user_bbdb_name', 'USER_BBDB_USER' => 'user_bbdb_user', 'USER_BBDB_PASSWORD' => 'user_bbdb_password', 'USER_BBDB_HOST' => 'user_bbdb_host', 'USER_BBDB_CHARSET' => 'user_bbdb_charset', 'CUSTOM_USER_TABLE' => 'custom_user_table', 'CUSTOM_USER_META_TABLE' => 'custom_user_meta_table');
    foreach ($deprecated_constants as $old => $new) {
        if (!defined($old)) {
            define($old, $bb->{$new});
        } else {
            bb_log_deprecated('constant', $old, '$bb->' . $new);
        }
    }
    unset($deprecated_constants, $old, $new);
    /**
     * Load deprecated functions
     */
    require_once BB_PATH . BB_INC . 'functions.bb-deprecated.php';
    /**
     * Old cache global object for backwards compatibility
     */
    $bb_cache = new BB_Cache();
}
/**
 * Load active template functions.php file
 */