]> git.pld-linux.org Git - packages/wordpress.git/commitdiff
- config in /etc
authorElan Ruusamäe <glen@pld-linux.org>
Sun, 22 Mar 2009 16:52:54 +0000 (16:52 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    wordpress.patch -> 1.1

wordpress.patch [new file with mode: 0644]

diff --git a/wordpress.patch b/wordpress.patch
new file mode 100644 (file)
index 0000000..38edc18
--- /dev/null
@@ -0,0 +1,35 @@
+--- wordpress/wp-load.php~     2009-03-20 10:38:16.000000000 +0200
++++ wordpress/wp-load.php      2009-03-20 10:40:16.081599269 +0200
+@@ -21,7 +21,12 @@
+ error_reporting(E_ALL ^ E_NOTICE ^ E_USER_NOTICE);
+-if ( file_exists( ABSPATH . 'wp-config.php') ) {
++if ( file_exists( '/etc/webapps/wordpress/wp-config.php') ) {
++
++      /** The config file resides in WEBAPPS */
++      require_once( '/etc/webapps/wordpress/wp-config.php' );
++
++} elseif ( file_exists( ABSPATH . 'wp-config.php') ) {
+       /** The config file resides in ABSPATH */
+       require_once( ABSPATH . 'wp-config.php' );
+--- wordpress/wp-admin/setup-config.php~       2009-03-20 10:38:16.000000000 +0200
++++ wordpress/wp-admin/setup-config.php        2009-03-20 10:42:40.461577381 +0200
+@@ -155,7 +155,7 @@
+       if ( !empty($wpdb->error) )
+               wp_die($wpdb->error->get_error_message());
+-      $handle = fopen('../wp-config.php', 'w');
++      $handle = fopen('/etc/webapps/wordpress/wp-config.php', 'w');
+       foreach ($configFile as $line_num => $line) {
+               switch (substr($line,0,16)) {
+@@ -179,7 +179,6 @@
+               }
+       }
+       fclose($handle);
+-      chmod('../wp-config.php', 0666);
+       display_header();
+ ?>
This page took 0.209446 seconds and 4 git commands to generate.