]> git.pld-linux.org Git - packages/wordpress.git/blob - wordpress.patch
- up to 2.9.1
[packages/wordpress.git] / wordpress.patch
1 --- wordpress/wp-load.php~      2009-03-20 10:38:16.000000000 +0200
2 +++ wordpress/wp-load.php       2009-03-20 10:40:16.081599269 +0200
3 @@ -21,7 +21,12 @@
4  
5  error_reporting(E_ALL ^ E_NOTICE ^ E_USER_NOTICE);
6  
7 -if ( file_exists( ABSPATH . 'wp-config.php') ) {
8 +if ( file_exists( '/etc/webapps/wordpress/wp-config.php') ) {
9 +
10 +       /** The config file resides in WEBAPPS */
11 +       require_once( '/etc/webapps/wordpress/wp-config.php' );
12 +
13 +} elseif ( file_exists( ABSPATH . 'wp-config.php') ) {
14  
15         /** The config file resides in ABSPATH */
16         require_once( ABSPATH . 'wp-config.php' );
17 --- wordpress/wp-admin/setup-config.php.orig    2009-11-20 05:11:01.000000000 +0100
18 +++ wordpress/wp-admin/setup-config.php 2010-01-23 19:09:28.000000000 +0100
19 @@ -199,7 +199,7 @@
20  <p class="step"><a href="install.php" class="button">Run the install</a></p>
21  <?php
22         else :
23 -               $handle = fopen(ABSPATH . 'wp-config.php', 'w');
24 +               $handle = fopen(ABSPATH . '/etc/webapps/wordpress/wp-config.php', 'w');
25                 foreach( $configFile as $line ) {
26                         fwrite($handle, $line);
27                 }
This page took 0.156277 seconds and 4 git commands to generate.