Skip to content
This repository has been archived by the owner on Nov 16, 2022. It is now read-only.

PHP warning when configuring a new slot #11

Closed
centreon opened this issue Jul 15, 2013 · 1 comment
Closed

PHP warning when configuring a new slot #11

centreon opened this issue Jul 15, 2013 · 1 comment

Comments

@centreon
Copy link
Collaborator


Author Name: Simon Bomm (Simon Bomm)
Original Redmine Issue: 4628, https://forge.centreon.com/issues/4628
Original Date: 2013-07-15


Hi,

When reaching "Administration > Modules > [Dynamic Services] -- Configure", there's a php warning showing up (cf attached files).

Error ligne 1497 of /usr/share/centreon/www/include/common/common-Func.php

In following function, $chemintotal is pointing to an nonexistent directory, should be a translation issue.

function getLangs(){
$langs = array();
$chemintotal = "./locale/";
$default = "en_US";

            $langs["en_US"] = "en_US";
            if ($handle  = opendir($chemintotal))   {
                while ($file = readdir($handle))
                    if (is_dir("$chemintotal/$file") && strcmp($file, ".") && strcmp($file, ".."))
                            $langs[$file] = $file;
                    closedir($handle);
            }
            return $langs;
    }

Thanks you,

@lpinsivy
Copy link
Contributor

doesn't exist with Centreon web 2.7 and DSM 2.1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants