public
Description: The ultra-lightweight ultra-flexible blogging engine with a fetish for birds and misspellings.
Homepage: http://chyrp.net/
Clone URL: git://github.com/vito/chyrp.git
Click here to lend your support to: chyrp and make a donation at www.pledgie.com !
If (theme dir)/admin exists it will be used to theme the Admin area.
vito (author)
Fri Nov 21 13:26:37 -0800 2008
commit  58f22264d5b39d8b43ec52330dea960f2f109b4a
tree    b88c78abb9060056011ceb5914d2d417a6a57a57
parent  fc6d342a56651dae8a93077187963df9f57361fc
...
29
30
31
32
 
33
34
35
...
29
30
31
 
32
33
34
35
0
@@ -29,7 +29,7 @@
0
          * Prepares Twig.
0
          */
0
         private function __construct() {
0
-            $this->twig = new Twig_Loader(MAIN_DIR."/admin/layout",
0
+            $this->twig = new Twig_Loader((file_exists(THEME_DIR."/admin") ? THEME_DIR."/admin" : MAIN_DIR."/admin/layout"),
0
                                           (is_writable(INCLUDES_DIR."/caches") and !DEBUG) ?
0
                                               INCLUDES_DIR."/caches" :
0
                                               null);

Comments