public function getInstalledTemplatePaths()
    {
        $dir = QCUBED_CONFIG_DIR . '/templates';

        $paths = [];

        if ($dir !== false) {    // does the active directory exist?
            foreach (scandir($dir) as $strFileName) {
                if (substr($strFileName, -8) == '.inc.php') {
                    $paths2 = include($dir . '/' . $strFileName);
                    if ($paths2 && is_array($paths2)) {
                        $paths = array_merge($paths, $paths2);
                    }
                }
            }
        }

        return $paths;
    }