Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Allow $url->set() to be used with 2 arguments

  • Loading branch information...
commit 42e6168584fea4d4b76e4e2988556fd87729c118 1 parent ee1552c
@romaninsh romaninsh authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/URL.php
View
4 lib/URL.php
@@ -123,6 +123,10 @@ function setPage($page=null){
$this->page=$destination;
return $this;
}
+ function set($argument,$value=null){
+ if(!is_array($argument))$argument=array($argument=>$value);
+ return $this->setArguments($argument);
+ }
function setArguments($arguments=array()){
// add additional arguments
if(is_null($arguments))$arguments=array();
Please sign in to comment.
Something went wrong with that request. Please try again.