[Astrospaces-commits] SF.net SVN: astrospaces: [71] trunk/functions/template.php
Brought to you by:
p3net
|
From: <p3...@us...> - 2007-07-31 02:35:01
|
Revision: 71
http://astrospaces.svn.sourceforge.net/astrospaces/?rev=71&view=rev
Author: p3net
Date: 2007-07-30 19:34:33 -0700 (Mon, 30 Jul 2007)
Log Message:
-----------
Fix a few WTFs in the template function and uncomment the todo that someone *hint* should finish
Modified Paths:
--------------
trunk/functions/template.php
Modified: trunk/functions/template.php
===================================================================
--- trunk/functions/template.php 2007-07-31 00:57:42 UTC (rev 70)
+++ trunk/functions/template.php 2007-07-31 02:34:33 UTC (rev 71)
@@ -112,15 +112,14 @@
$this->compile_slices(); // KEEP THIS HERE!
}
- /* Under development
function load_lang_file ( $filename )
{
@$array = include($filename);
- if (!$array = false)
+ if ($array === true)
{
$this->lang = array_merge($this->lang, $array);
} else {
- echo '<p>Language file could not be loaded</p>';
+ $error->general('Language file could not be loaded', $filename);
}
}
@@ -138,7 +137,6 @@
{
return $this->lang_prefix . $name;
}
- */
function slice_start ( $name ) { return sprintf( $this->slice_start, $name); }
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|