Changeset 6705

Show
Ignore:
Timestamp:
09/13/08 16:34:31 (5 years ago)
Author:
p_lindheimer
Message:

fixes #3193 - oops, looks like some debug code had been left in when checked in, thanks

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.5/core/functions.inc.php

    r6677 r6705  
    27042704    $existing = core_did_get($newdid, $newdidcid); 
    27052705    if (! empty($existing)) { 
    2706       echo "<script>javascript:alert('"._("A route with this DID/CID already exists")."')</script>"."<pre>".print_r($existing,true)."</pre>"; 
     2706      echo "<script>javascript:alert('".sprintf(_("A route with this DID/CID: %s/%s already exists"),$existing['extension'],$existing['cidnum'])."')</script>"; 
    27072707      return false; 
    27082708    } 
     
    29442944    $existing = core_did_get($newdid, $newdidcid); 
    29452945    if (! empty($existing)) { 
    2946       echo "<script>javascript:alert('"._("A route with this DID/CID already exists")."')</script>"; 
     2946      echo "<script>javascript:alert('".sprintf(_("A route with this DID/CID: %s/%s already exists"),$existing['extension'],$existing['cidnum'])."')</script>"; 
    29472947      return false; 
    29482948    }