Ecoder / Core

Browser-based code editor. --- Stopping development: http://ecoder.info/2012/07/13/stopping-development/
http://ecoder.info/
30 stars 9 forks source link

Parse error: in /code/tree.php on line 39 #17

Open jumpcutking opened 12 years ago

jumpcutking commented 12 years ago

I get a parse error in /code/tree.php, when I first run the program.

The error is: Parse error: syntax error, unexpected ':' in /home/justin75/theeditor.4egtv.net/code/tree.php on line 39

The code snipet is

public static function init() {
        global $cnf,$code;
        $i=Input::_get();
        $showHidden=($i->showHidden ?: $cnf["showHidden"]);
        $node=new TreeNode(realpath($code['root']),$showHidden);
        Output::add("tree",$node);
    }

Unfortantly I don't know enough about OOPHP to fix the issue.

jumpcutking commented 12 years ago

I've jerry rigged the showHidden feild to come form configuration by:

$showHidden=($i->showHidden ? $cnf["showHidden"]) : $cnf["showHidden"]);