]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/robotstxt.php
Added missing isPrivateScope().
[quix0rs-gnu-social.git] / actions / robotstxt.php
index 5131097c8c533eeb3a5ad376cf9e133c09ae8007..5845e197b6fe9811aa4ee246063b9c6acd9445d8 100644 (file)
@@ -40,7 +40,6 @@ if (!defined('STATUSNET')) {
  * @license  http://www.fsf.org/licensing/licenses/agpl.html AGPLv3
  * @link     http://status.net/
  */
-
 class RobotstxtAction extends Action
 {
     /**
@@ -53,8 +52,7 @@ class RobotstxtAction extends Action
      *
      * @return void
      */
-
-    function handle($args)
+    function handle(array $args=array())
     {
         if (Event::handle('StartRobotsTxt', array($this))) {
 
@@ -65,9 +63,7 @@ class RobotstxtAction extends Action
             if (common_config('site', 'private')) {
 
                 print "Disallow: /\n";
-
             } else {
-
                 $disallow = common_config('robotstxt', 'disallow');
 
                 foreach ($disallow as $dir) {
@@ -92,8 +88,7 @@ class RobotstxtAction extends Action
      *
      * @return boolean is read only action?
      */
-
-    function isReadOnly($args)
+    function isReadOnly(array $args=array())
     {
         return true;
     }