]> git.mjollnir.org Git - m.o.git/commitdiff
moved main to about so it would load first, and array sort components. master
authorPenny Leach <penny@mjollnir.org>
Sat, 13 Sep 2008 17:12:43 +0000 (18:12 +0100)
committerPenny Leach <penny@mjollnir.org>
Sat, 13 Sep 2008 17:12:43 +0000 (18:12 +0100)
comp/about.php [new file with mode: 0644]
comp/main.php [deleted file]
include/about.inc [moved from include/main.inc with 100% similarity]
lib/general.php
style.css

diff --git a/comp/about.php b/comp/about.php
new file mode 100644 (file)
index 0000000..f036bf4
--- /dev/null
@@ -0,0 +1,5 @@
+<?php
+
+function comp_about() {
+    include(get_config('root') . '/include/about.inc');
+}
diff --git a/comp/main.php b/comp/main.php
deleted file mode 100644 (file)
index 61e1946..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-<?php
-
-function comp_main() {
-    include(get_config('root') . '/include/main.inc');
-}
similarity index 100%
rename from include/main.inc
rename to include/about.inc
index 5fe7f4975f17500dc7e28c15d7ed91b9a843052d..f5c1b37609c2b25f78098ae8f61bf8cc91798437 100644 (file)
@@ -21,6 +21,7 @@ function get_components() {
         }
         $comps[] = substr($file, 0, strpos($file, '.'));
     }
+    asort($comps);
     return $comps;
 }
 
index 51ef487e55b67d36adc2081f144d536236a3bc30..de2da8a98b72ea13320613691739130e7fdff56d 100644 (file)
--- a/style.css
+++ b/style.css
@@ -69,7 +69,7 @@ div#flickr img {
     border:0px;
 }
 
-div#main {
+div#about {
     left:20px;
     width:780px;
     height:195px;