diff options
author | Pascal Chevrel <pascal@chevrel.org> | 2012-03-12 15:40:15 +0100 |
---|---|---|
committer | Pascal Chevrel <pascal@chevrel.org> | 2012-03-12 15:40:15 +0100 |
commit | 5378cf37d8d3dde29a2e7a67e94f3966696288e6 (patch) | |
tree | d2beff7282a5e5e2ddcd870113117944587084a7 /index.php | |
parent | e6ab308bbdb024fe8f65f6e6419482d94dc54eab (diff) | |
download | planet-5378cf37d8d3dde29a2e7a67e94f3966696288e6.tar planet-5378cf37d8d3dde29a2e7a67e94f3966696288e6.tar.gz planet-5378cf37d8d3dde29a2e7a67e94f3966696288e6.tar.bz2 planet-5378cf37d8d3dde29a2e7a67e94f3966696288e6.tar.xz planet-5378cf37d8d3dde29a2e7a67e94f3966696288e6.zip |
l10n support for moonmoon
Diffstat (limited to 'index.php')
-rwxr-xr-x[-rw-r--r--] | index.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/index.php b/index.php index e8644c2..d6a2853 100644..100755 --- a/index.php +++ b/index.php @@ -4,7 +4,7 @@ include_once(dirname(__FILE__).'/app/lib/Cache.php'); //Installed ? if (!isset($Planet)) { - echo '<p>You might want to <a href="install.php">install moonmoon</a>.</p>'; + echo '<p>' . _g('You might want to <a href="install.php">install moonmoon</a>.') . '</p>'; exit; } @@ -23,8 +23,8 @@ $cache_duration = $PlanetConfig->getOutputTimeout()*60; Cache::setStore(dirname(__FILE__).'/'.$conf['cachedir']); //Go display -if (!isset($_GET['type']) || - !is_file(dirname(__FILE__).'/custom/views/'.$_GET['type'].'/index.tpl.php') || +if (!isset($_GET['type']) || + !is_file(dirname(__FILE__).'/custom/views/'.$_GET['type'].'/index.tpl.php') || strpos($_GET['type'], DIRECTORY_SEPARATOR)){ $_GET['type'] = 'default'; } @@ -36,4 +36,4 @@ if (!OutputCache::Start($_GET['type'], $cache_key, $cache_duration)) { echo "<!--"; var_dump($Planet->errors); -echo "-->";
\ No newline at end of file +echo "-->"; |