<?php

/************************************************************************/
/* 4nAlbum Version 0.9                                                  */
/* ==================================================================== */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License.       */
/************************************************************************/

// Loads the required language file for module (from Patrick Kellum <webmaster@ctarl-ctarl.com>)

   function modules_get_language($script = 'global')
   {
      global $ModName, $currentlang, $language;
      if (file_exists("modules/$ModName/language/$currentlang/$script.php"))
      {
         @include "modules/$ModName/language/$currentlang/$script.php";
      }
      elseif (!empty($language))
      {
         if (file_exists("modules/$ModName/language/$language/$script.php"))
         {
            @include "modules/$ModName/language/$language/$script.php";
         }
      }
      else
      {
         @include "modules/$ModName/language/english/$script.php";
      }
      return ;
   }

?>