<?php
class ShortenUrlEasily {
  public static $action_list = array(
    'creativecommons',
    'credits',
    'delete',
    'deletetrackback',
    'dublincore',
    'edit',
    'history',
    'info',
    'markpatrolled',
    'print',
    'protect',
    'purge',
    'raw',
    'render',
    'revert',
    'rollback',
    'submit',
    'unprotect',
    'unwatch',
    'varidate',
    'view',
    'viewsource',
    'watch',
  );

  public static function init($article = 'wiki', $action = 'w') {
    global $wgArticlePath, $wgActionPaths;
    $wgArticlePath = "/$article/$1";
    foreach(self::$action_list as $a) $wgActionPaths[$a] = "/$action/$a/$1";
  }
}

ShortenUrlEasily::init();

<?php
class ShortenUrlEasily {
  public static $action_list = array(
    'creativecommons',
    'credits',
    'delete',
    'deletetrackback',
    'dublincore',
    'edit',
    'history',
    'info',
    'markpatrolled',
    'print',
    'protect',
    'purge',
    'raw',
    'render',
    'revert',
    'rollback',
    'search',
    'submit',
    'unprotect',
    'unwatch',
    'varidate',
    'view',
    'viewsource',
    'watch',
  );

  public static function init($article = 'wiki', $action = 'w') {
    global $wgArticlePath, $wgActionPaths;
    $wgArticlePath = "/$article/$1";
    foreach(self::$action_list as $a) $wgActionPaths[$a] = "/$action/$a/$1";
  }
}

ShortenUrlEasily::init();

Add 'search' action to action_list
Add 'search' action to action_list
