[Pkg-owncloud-commits] [owncloud-doc] 03/08: Fix #459
David Prévot
taffit at moszumanska.debian.org
Mon Aug 4 16:25:31 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository owncloud-doc.
commit 132c0b6fa3077d8a94a5dec6afd4e9572f10fad3
Author: Bernhard Posselt <Raydiation at users.noreply.github.com>
Date: Mon Aug 4 09:08:30 2014 +0200
Fix #459
---
developer_manual/app/middleware.rst | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/developer_manual/app/middleware.rst b/developer_manual/app/middleware.rst
index bf5de4c..183ee5c 100644
--- a/developer_manual/app/middleware.rst
+++ b/developer_manual/app/middleware.rst
@@ -29,7 +29,7 @@ To generate your own middleware, simply inherit from the Middleware class and ov
* this replaces "fuck" with "****"" in the output
*/
public function beforeOutput($controller, $methodName, $output){
- return str_replace($output, 'fuck', '****');
+ return str_replace('fuck', '****', $output);
}
}
@@ -64,7 +64,7 @@ The middleware can be registered in the :doc:`container` and added using the **r
});
// executed in the order that it is registered
- $this->registerMiddleware('CensorMiddleware');
+ $container->registerMiddleware('CensorMiddleware');
}
}
@@ -139,7 +139,7 @@ Now adjust the container to inject the reflector:
});
// executed in the order that it is registered
- $this->registerMiddleware('HeaderMiddleware');
+ $container->registerMiddleware('HeaderMiddleware');
}
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-doc.git
More information about the Pkg-owncloud-commits
mailing list