Ignore:
Timestamp:
Sep 18, 2014, 3:53:51 PM (10 years ago)
Author:
mistic100
Message:

remove "safe mode" checkbox, now fully automatic

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/gvideo/admin/add.php

    r28268 r29627  
    1818      $page['errors'][] = l10n('Please fill the video URL');
    1919    }
    20     else if ( ($video = parse_video_url($_POST['url'], isset($_POST['safe_mode']))) === false )
     20    else if ( ($video = parse_video_url($_POST['url'], $safe_mode)) === false )
    2121    {
    22       if (isset($_POST['safe_mode']))
     22      $page['errors'][] = l10n('an error happened');
     23    }
     24    else
     25    {
     26      if ($safe_mode === true)
    2327      {
    24         $page['errors'][] = l10n('an error happened');
     28        $page['warnings'][] = l10n('Unable to contact host server');
     29        $page['warnings'][] = l10n('Video data like description and thumbnail might be missing');
    2530      }
    26       else
    27       {
    28         $page['errors'][] = l10n('Unable to contact host server');
    29         $page['errors'][] = l10n('Try in safe-mode');
    30       }
    31       $_POST['safe_mode'] = true;
    32     }
    33 
    34     if (count($page['errors']) == 0)
    35     {
     31     
    3632      if ($_POST['size_common'] == 'true')
    3733      {
Note: See TracChangeset for help on using the changeset viewer.