moving file to the right location

This commit is contained in:
Thomas Müller 2013-10-07 00:32:39 +02:00
parent fda37ea09c
commit 3829a746a1
3 changed files with 10 additions and 10 deletions

View File

@ -22,7 +22,7 @@ class Factory {
* get an L10N instance * get an L10N instance
* @param $app string * @param $app string
* @param $lang string|null * @param $lang string|null
* @return OC_L10N * @return \OC_L10N
*/ */
public function get($app) { public function get($app) {
if (!isset($this->instances[$app])) { if (!isset($this->instances[$app])) {

View File

@ -8,18 +8,20 @@
*/ */
namespace OC; namespace OC;
use OCP\IURLGenerator;
use RuntimeException;
/** /**
* Class to generate URLs * Class to generate URLs
*/ */
class URLGenerator { class URLGenerator implements IURLGenerator {
/** /**
* @brief Creates an url using a defined route * @brief Creates an url using a defined route
* @param $route * @param $route
* @param array $parameters * @param array $parameters
* @return * @return
* @internal param array $args with param=>value, will be appended to the returned url * @internal param array $args with param=>value, will be appended to the returned url
* @returns the url * @returns string the url
* *
* Returns a url to the given app and file. * Returns a url to the given app and file.
*/ */
@ -97,15 +99,13 @@ class URLGenerator {
} }
} }
/** /**
* @brief Makes an $url absolute * Makes an URL absolute
* @param string $url the url * @param string $url the url in the owncloud host
* @return string the absolute url * @return string the absolute version of the url
*
* Returns a absolute url to the given app and file.
*/ */
public function makeURLAbsolute($url) { public function getAbsoluteURL($url) {
return \OC_Request::serverProtocol() . '://' . \OC_Request::serverHost() . $url; return \OC_Request::serverProtocol() . '://' . \OC_Request::serverHost() . $url;
} }
} }