original_string: public function onLoadRenamePopup()
      {
          $this->abortIfReadOnly();
  
          $path = Input::get('path');
          $path = MediaLibrary::validatePath($path);
  
          $this->vars['originalPath'] = $path;
          $this->vars['name'] = basename($path);
          $this->vars['listId'] = Input::get('listId');
          $this->vars['type'] = Input::get('type');
  
          return $this->makePartial('rename-form');
      }
code: public function onLoadRenamePopup()
      {
          $this->abortIfReadOnly();
  
          $path = Input::get('path');
          $path = MediaLibrary::validatePath($path);
  
          $this->vars['originalPath'] = $path;
          $this->vars['name'] = basename($path);
          $this->vars['listId'] = Input::get('listId');
          $this->vars['type'] = Input::get('type');
  
          return $this->makePartial('rename-form');
      }
code_tokens: public function onLoadRenamePopup ( ) { $ this -> abortIfReadOnly ( ) ; $ path = Input :: get ( 'path' ) ; $ path = MediaLibrary :: validatePath ( $ path ) ; $ this -> vars [ 'originalPath' ] = $ path ; $ this -> vars [ 'name' ] = basename ( $ path ) ; $ this -> vars [ 'listId' ] = Input :: get ( 'listId' ) ; $ this -> vars [ 'type' ] = Input :: get ( 'type' ) ; return $ this -> makePartial ( 'rename-form' ) ; }
docstring: Show rename item popup AJAX handler
  @return array
docstring_tokens: Show rename item popup AJAX handler