Skip to content

Commit

Permalink
Added the template handler.
Browse files Browse the repository at this point in the history
Added the control panel templates.
  • Loading branch information
Azareal committed Nov 30, 2016
1 parent 227d6f4 commit 5f7bf60
Show file tree
Hide file tree
Showing 5 changed files with 3,414 additions and 3 deletions.
7 changes: 6 additions & 1 deletion TO-DO.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,10 @@ Make the MCP front page super customisable.
Add gadgets for displaying reports / mod actions.
Add a cache_registry to make it easier for plugins to find out which ones are the HTML caches, which ones are data caches and which ones are compiled caches.
Catch the errors when it fails to connect to Mysql.
Test to see if memcached works and review it. Turn memcached into a plugin?
Test to see if memcached works and review it.
Add more unit tests.
Test and improve the template compilation system.
Test and complete the multi-threading system.

Bugs:
Avatar updating is broken.
4 changes: 2 additions & 2 deletions hadron/class_language.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,13 @@ function load($name)

function get($name)
{
if(!isset($this->data[$name])) throw new \Exception("Unable to find the '{$name}' language string.");
if(!isset($this->data[$name])) return '{$lang_'.name.'}';
return $this->data[$name];
}

function __get($name)
{
if(!isset($this->data[$name])) throw new \Exception("Unable to find the '{$name}' language string.");
if(!isset($this->data[$name])) return '{$lang_'.name.'}';
return $this->data[$name];
}

Expand Down
Loading

0 comments on commit 5f7bf60

Please sign in to comment.