1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 01:39:24 +02:00
Oinktube/install/changeUnlistedToUnlistedSearchable.php
Daniel Neto 8db8d44a92 Refactor Video Status Constants
- Updated references from Video::$status* to Video::STATUS_* for consistency across multiple files.
- Ensured that all instances of video status checks and assignments utilize the new constant format.
- This change improves code readability and maintainability by standardizing the way video statuses are referenced throughout the codebase.
2025-07-11 12:52:02 -03:00

11 lines
377 B
PHP

<?php
//streamer config
require_once '../videos/configuration.php';
require_once $global['systemRootPath'] . 'objects/video.php';
if (!isCommandLineInterface()) {
return die('Command Line only');
}
ob_end_flush();
$sql = "UPDATE videos SET status = ? WHERE status = ? ";
sqlDAL::writeSql($sql, 'ss', array(Video::STATUS_UNLISTED_BUT_SEARCHABLE, Video::STATUS_UNLISTED));