[gnomeweb-wp: 2/13] Moving the po dir to the theme dir



commit 738bc2ed3e001d98a8366ae5c18f3ec162832f27
Author: Lincoln de Sousa <lincoln comum org>
Date:   Sat Nov 6 21:02:47 2010 -0200

    Moving the po dir to the theme dir

 wp-content/themes/gnome-grass/functions.php |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/wp-content/themes/gnome-grass/functions.php b/wp-content/themes/gnome-grass/functions.php
index 0a866e1..127de4c 100644
--- a/wp-content/themes/gnome-grass/functions.php
+++ b/wp-content/themes/gnome-grass/functions.php
@@ -88,7 +88,7 @@ add_filter('gallery_style', create_function('$a', 'return preg_replace("%
 %s", "", $a);'));
 
 function update_pot_file ($post) {
-  $podir = ABSPATH . "po/";
+  $podir = WP_CONTENT_DIR . '/themes/gnome-grass/po/';
   $xml_file = "{$podir}.tmp.xml";
   file_put_contents ($xml_file, generate_po_xml ());
 
diff --git a/wp-content/themes/gnome-grass/po/.empty b/wp-content/themes/gnome-grass/po/.empty
new file mode 100644
index 0000000..e69de29



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]