~armagetronad-ap/armagetronad/BattleMania

« back to all changes in this revision

Viewing changes to src/tools/locale.php

  • Committer: zodiacsohma1 at gmail
  • Date: 2014-03-02 08:09:55 UTC
  • Revision ID: zodiacsohma1@gmail.com-20140302080955-r5ot6eipfe0nlpww
Simplified all fields and code in all areas for better as they seem to repeat themselves.

Show diffs side-by-side

added added

removed removed

Lines of Context:
123
123
{
124
124
    foreach (Base::$base->language as $msg)
125
125
    {
126
 
        if (isset($msg) && !is_null($msg) && $msg instanceof Language && ($msg->name == $identifier))
 
126
        if (isset($msg) && $msg instanceof Language && ($msg->name == $identifier))
127
127
        {
128
128
            return true;
129
129
        }
136
136
{
137
137
    foreach (Base::$base->language as $msg)
138
138
    {
139
 
        if (isset($msg) && !is_null($msg) && $msg instanceof Language && ($msg->name == $identifier))
 
139
        if (isset($msg) && $msg instanceof Language && ($msg->name == $identifier))
140
140
        {
141
141
            return $msg;
142
142
        }