🏡 index : ~doyle/koselig.git

author Jordan Doyle <jordan@doyle.wf> 2016-10-30 12:59:53.0 +00:00:00
committer Jordan Doyle <jordan@doyle.wf> 2016-10-30 12:59:53.0 +00:00:00
commit
8dc9ad476d1f837ddb545a206b7fcde27e52468a [patch]
tree
98a597a74819d14104880358f28359fbf7730f42
parent
2bf24d12a22a48f872738aa703146fc629c07995
download
8dc9ad476d1f837ddb545a206b7fcde27e52468a.tar.gz

fix error



Diff

 src/Providers/WordpressServiceProvider.php | 1 -
 src/Proxy/WordpressDatabase.php            | 2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/Providers/WordpressServiceProvider.php b/src/Providers/WordpressServiceProvider.php
index a4ac00d..3b4bbeb 100644
--- a/src/Providers/WordpressServiceProvider.php
+++ b/src/Providers/WordpressServiceProvider.php
@@ -124,7 +124,6 @@ class WordpressServiceProvider extends ServiceProvider

        if ($this->app->runningInConsole()) {
            // allow wordpress to run, even when running from console (ie. artisan compiling)
            Request::server()
            $_SERVER['SERVER_PROTOCOL'] = 'https';
            $_SERVER['HTTP_HOST'] = parse_url(config('app.url'))['host'];
        }
diff --git a/src/Proxy/WordpressDatabase.php b/src/Proxy/WordpressDatabase.php
index 4600467..846b77f 100644
--- a/src/Proxy/WordpressDatabase.php
+++ b/src/Proxy/WordpressDatabase.php
@@ -53,7 +53,7 @@ class WordpressDatabase extends wpdb
     * Set the properties Wordpress expects so it will run queries for us
     * through this class.
     *
     * @param bool $allow_bail
     * @param bool $allowBail
     *
     * @return void
     */