Fixing typo.

1.9.x
Julio Montoya 12 years ago
parent e32717cdb5
commit 9ed944d2ba
  1. 4
      main/admin/access_url_edit.php
  2. 2
      main/inc/lib/urlmanager.lib.php
  3. 4
      tests/main/inc/lib/urlmanager.lib.test.php

@ -37,9 +37,9 @@ if ($form->validate()) {
}
//checking url
if (substr($url, strlen($url)-1, strlen($url)) == '/') {
UrlManager::udpate($url_id, $url, $description, $active);
UrlManager::update($url_id, $url, $description, $active);
} else {
UrlManager::udpate($url_id, $url.'/', $description, $active);
UrlManager::update($url_id, $url.'/', $description, $active);
}
// URL Images
$url_images_dir = api_get_path(SYS_PATH).'custompages/url-images/';

@ -44,7 +44,7 @@ class UrlManager
* @param int is active or not
* @return boolean if success
*/
public static function udpate($url_id, $url, $description, $active)
public static function update($url_id, $url, $description, $active)
{
$url_id = intval($url_id);
$table_access_url= Database :: get_main_table(TABLE_MAIN_ACCESS_URL);

@ -143,12 +143,12 @@ class TestUrlManager extends UnitTestCase {
//var_dump($res);
}
function testudpate() {
function testupdate() {
$url_id='';
$url='';
$description='';
$active='';
$res=UrlManager::udpate($url_id, $url, $description, $active);
$res=UrlManager::update($url_id, $url, $description, $active);
if(!is_null($res))$this->assertTrue(is_bool($res));
//var_dump($res);
}

Loading…
Cancel
Save