Permalink
Browse files

Updated version number

  • Loading branch information...
1 parent b77e697 commit c86e71bf02824dc02f6aeaa142a6e734d238f1d9 @kolber committed Nov 23, 2009
Showing with 3 additions and 2 deletions.
  1. +1 −1 README
  2. +2 −1 app/stacey.inc.php
View
2 README
@@ -1,5 +1,5 @@
Overview—
-Version 1.1
+Version 1.2
Stacey takes static content from .txt files, image files and directory structure and generates a static portfolio website. So, a no-cms, no-database, semi-dynamic website generator.
If you look in the /content and /templates folders, you should get the general idea of how it all works.
Or check out http://staceyapp.com for more detailed usage information.
View
@@ -2,7 +2,7 @@
Class Stacey {
- static $version = '1.1';
+ static $version = '1.2';
function __construct($get) {
$this->php_fixes();
@@ -47,6 +47,7 @@ static function sort_by_length($a,$b){
static function list_files($dir, $regex, $folders_only = false) {
$files = array();
$glob = ($folders_only) ? glob($dir."/*", GLOB_ONLYDIR) : glob($dir."/*");
+ // if glob returns false, pass back an empty array
if(!$glob) return array();
// loop through each glob result and push it to $dirs if it matches the passed regexp
foreach($glob as $file) {

0 comments on commit c86e71b

Please sign in to comment.